IAMconsortium / pyam

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

`as_pandas()` returns bigger-than-necessary dataframes #51

Open danielhuppmann opened 6 years ago

danielhuppmann commented 6 years ago

When the function line_plot() calls as_pandas() to retrieve the joined data+meta dataframe and then plots two metadata columns, it paints each marker once per timestep (because the rows in the joined dataframe are duplicated if you ignore year and value).

It might make more sense to pass the required columns to as_pandas() and then let it decide whether to join data and meta, or return data or meta only.

danielhuppmann commented 4 years ago

this has actually been fixed in line_plot() but the issue persists in stack_plot(), bar_plot() and pie_plot()...