0
$\begingroup$

When I use df.plot.area() the areas are in reverse alphabetical order from top to bottom, whereas the legend is in alphabetical order. My best options so far is to use ax.legend(reversed(handles), reversed(labels), loc='lower left') or ax.invert_yaxis(). These will result in either a reverse alphabetical order or an inverted y-axis (100% at the bottom) respectively. Anyway to get both the legend and chart in alphabetical order without changing the y-axis?

New contributor
Kees is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
$\endgroup$
1
  • 2
    $\begingroup$ Could you show an example with data and code to show the issue? $\endgroup$ – Oxbowerce 2 days ago