From 9a69ca47e440c25a67ec6715663dd1b93096d7cf Mon Sep 17 00:00:00 2001 From: Matthew Gidden Date: Wed, 11 Jul 2018 12:57:05 +0200 Subject: [PATCH 1/2] dropna in lineplot to get rid of no lines due to nans --- pyam/plotting.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyam/plotting.py b/pyam/plotting.py index 8904382ca..098ce9671 100644 --- a/pyam/plotting.py +++ b/pyam/plotting.py @@ -538,6 +538,7 @@ def line_plot(df, x='year', y='value', ax=None, legend=None, title=True, legend_data.append(' '.join(labels)) kwargs.update(pargs) + data = data.dropna() data.plot(ax=ax, **kwargs) # build legend handles and labels From 5d91c765a5c5fff9f9da5c92a44b52f8bd3ec2f0 Mon Sep 17 00:00:00 2001 From: Matthew Gidden Date: Wed, 11 Jul 2018 12:58:01 +0200 Subject: [PATCH 2/2] add release notes --- RELEASE_NOTES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 8f79b0517..63d4b4082 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,5 +1,6 @@ # Next Release +- (#72)[https://github.com/IAMconsortium/pyam/pull/72] line_plot now drops NaNs so that lines are fully plotted - (#66)[https://github.com/IAMconsortium/pyam/pull/66] Fixes a bug in the `interpolate()` function (duplication of data points if already defined) - (#65)[https://github.com/IAMconsortium/pyam/pull/65] Add a `filter_by_meta()` function to filter/join a pd.DataFrame with an IamDataFrame.meta table