Skip to content
Snippets Groups Projects
Unverified Commit c83f8f7a authored by Frank Sauerburger's avatar Frank Sauerburger
Browse files

Reverse processes in legend

parent f51c343e
No related branches found
No related tags found
1 merge request!48Resolve "Legend ordering"
Pipeline #12588 passed
......@@ -318,7 +318,8 @@ def hist(dataframe, variable, bins, stacks, selection=None,
axes.set_ylim((y_min, y_max))
axes.legend(frameon=False, loc=1)
leg_handles, leg_labels = axes.get_legend_handles_labels()
axes.legend(leg_handles[::-1], leg_labels[::-1], frameon=False, loc=1)
x_label_axes = axes_ratio if draw_ratio else axes
if variable.unit is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment