diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 8743eaa00..f0d92f3e2 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -3,6 +3,7 @@ - (#80)[https://github.com/IAMconsortium/pyam/pull/80] Extend the pseudo-regexp syntax for filtering in `pattern_match()` - (#73)[https://github.com/IAMconsortium/pyam/pull/73] Adds ability to remove labels for markers, colors, or linestyles +- (#72)[https://github.com/IAMconsortium/pyam/pull/72] line_plot now drops NaNs so that lines are fully plotted - (#71)[https://github.com/IAMconsortium/pyam/pull/71] Line plots `legend` keyword can now be a dictionary of legend arguments - (#70)[https://github.com/IAMconsortium/pyam/pull/70] Support reading of both SSP and RCP data files downloaded from the IIASA database. - (#66)[https://github.com/IAMconsortium/pyam/pull/66] Fixes a bug in the `interpolate()` function (duplication of data points if already defined) diff --git a/pyam/plotting.py b/pyam/plotting.py index 07cfeb125..c159cdfb5 100644 --- a/pyam/plotting.py +++ b/pyam/plotting.py @@ -544,6 +544,7 @@ def line_plot(df, x='year', y='value', ax=None, legend=None, title=True, else: pargs[key] = var kwargs.update(pargs) + data = data.dropna() data.plot(ax=ax, **kwargs) if labels: ax.lines[-1].set_label(' '.join(labels))