diff --git a/galleries/examples/lines_bars_and_markers/stackplot_demo.py b/galleries/examples/lines_bars_and_markers/stackplot_demo.py index 958fab67c7d5..890a827fa156 100644 --- a/galleries/examples/lines_bars_and_markers/stackplot_demo.py +++ b/galleries/examples/lines_bars_and_markers/stackplot_demo.py @@ -30,7 +30,7 @@ fig, ax = plt.subplots() ax.stackplot(year, population_by_continent.values(), labels=population_by_continent.keys(), alpha=0.8) -ax.legend(loc='upper left') +ax.legend(loc='upper left', reverse=True) ax.set_title('World population') ax.set_xlabel('Year') ax.set_ylabel('Number of people (millions)')