小编JAM*_*AGE的帖子

Put the legend of pandas bar plot with secondary y axis in front of bars

I have a pandas DataFrame with a secondary y axis and I need a bar plot with the legend in front of the bars. Currently, one set of bars is in front of the legend. If possible, I would also like to place the legend in the lower-left corner. Any ideas appreciated!

I have attempted to set the legend=false and add a custom legend, but it has the same issue. I've tried reordering the columns but there's no way to …

python plot matplotlib pandas jupyter-notebook

6
推荐指数
1
解决办法
77
查看次数

标签 统计

jupyter-notebook ×1

matplotlib ×1

pandas ×1

plot ×1

python ×1