OSeMOSYS / osemosys_global

A global power system model generator for OSeMOSYS
https://osemosys-global.readthedocs.io/
GNU Affero General Public License v3.0
27 stars 17 forks source link

Update legend order and legend colours in visualization script #93

Closed trevorb1 closed 2 years ago

trevorb1 commented 2 years ago

As per issue #89, I flipped the order of the the legend labels to match the order of the stacked bar plots (ie. The first item in the legend list will be the top bar on the stacked plot.) While doing this I noticed we were reading in a list of colours to use from the file data/color_codes.csv, but we weren't actually using them? Not sure if this was on purpose or not? I updated the script to use these colours so we can easily change them in the future though !

I've tested the script with a couple different scenarios and everything seems good, but I don't have much experience with graphing scripts... Are you able to please quickly review it @abhishek0208 to make sure I didn't break anything? :p