FAST-HEP / fast-plotter

Manipulate binned pandas dataframes into plots
https://fast-hep.web.cern.ch
3 stars 8 forks source link

If dataset_order is a list, fast-plotter fails #11

Closed eshwen closed 4 years ago

eshwen commented 5 years ago

If a user specifies dataset_order as a list in their plotting config file, fast-plotter complains at this line https://github.com/FAST-HEP/fast-plotter/blob/814f0f765c6699ffbea7db63ed33334470f7bc5c/fast_plotter/utils.py#L132 as lists don't have the startswith() attribute. This line should be at the top of the function: https://github.com/FAST-HEP/fast-plotter/blob/814f0f765c6699ffbea7db63ed33334470f7bc5c/fast_plotter/utils.py#L140

Also, when specifying dataset_order as a list, the datasets are actually plotted in reverse order.