pyam
pyam copied to clipboard
Some stack_plot calls give an IndexError.
Even with matplotlib=3.0.2
(as suggested in #281), I am getting IndexError: single positional indexer is out-of-bounds
by calling stack_plot()
. But it doesn't apply to all stack_plot
calls. I haven't identified the pattern yet, but some stack_plot
calls are working fine.
When there is the error, simply replacing stack_plot
with line_plot
or bar_plot
works fine.
Thanks @Jihoon for creating this issue!
Can you please attach the data (as csv) for a minimal example that reproduces this error? I.e., only the filtered data that you want to plot plus the stack_plot()
arguments. (If you aren't sure how to do it, let's discuss on Slack).
Thanks @danielhuppmann. I attach an xlsx here since it doesn't allow csv..
With the dataframe given below, what I tested was
data.filter(region="World").stack_plot()
, while this data.filter(region="World").line_plot()
is working fine.
Is this solved now @Jihoon? I can't reproduce with that data..