IAMconsortium / pyam

Analysis & visualization of energy & climate scenarios
https://pyam-iamc.readthedocs.io/
Apache License 2.0
227 stars 119 forks source link

Strange data in tutorial for aggregating and stacked plots #265

Open danielhuppmann opened 5 years ago

danielhuppmann commented 5 years ago

Using the stack_plot() feature and experiencing some strange behaviour, I went to the aggregating_variables_and_plotting_with_negative_values tutorial notebook (#198) to see check whether I was doing something wrong.

I noticed that the test data are a bit ... counter-intuitive. Is this dataset based on real scenario data, or just completely made up?

Specifically:

@rossursino @znicholls, any comments?

znicholls commented 5 years ago

Is this dataset based on real scenario data, or just completely made up?

Completely made up, can edit however makes sense to you. We just chose the data to make sure the features we cared about all worked (e.g. it could handle timeseries which were only positive, only negative, started positive then went negative, started positive then went negative then went positive again).

danielhuppmann commented 5 years ago

Thanks @znicholls - see related issue #266 - stack_plot() completely removes timeseries that start with zero values.

Will see if I can fix that and will update the illustrative dataset in the tutorial as well.