Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ability to fill between lines #109

Merged
merged 18 commits into from Oct 17, 2018

Conversation

gidden
Copy link
Member

@gidden gidden commented Oct 15, 2018

Please confirm that this PR has done the following:

  • Tests Added
  • Documentation Added
  • Description in RELEASE_NOTES.md Added

Adding to RELEASE_NOTES.md (remove section after adding to RELEASE_NOTES.md)

Please add a single line in the release notes similar to the following:

- (#XX)[http://link-to-pr.com] Added feature which does something

Description of PR

Please describe the changes introduced by this PR.

pyam/plotting.py Outdated
@@ -640,6 +646,9 @@ def line_plot(df, x='year', y='value', ax=None, legend=None, title=True,
props = assign_style_props(df, color=color, marker=marker,
linestyle=linestyle, cmap=cmap)

if fill_between and not 'color' in props:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E713 test for membership should be 'not in'

pyam/plotting.py Outdated
dictionary, those arguments will be provided instead of defaults.
default: None
final_ranges : boolean or dict, optional
Add vertical line between minima/maxima of the 'color' argument in the

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

W291 trailing whitespace

@gidden
Copy link
Member Author

gidden commented Oct 15, 2018

This is good to go pending CI, @danielhuppmann

@gidden
Copy link
Member Author

gidden commented Oct 15, 2018

ok, now actually g2g @danielhuppmann

@gidden
Copy link
Member Author

gidden commented Oct 15, 2018

hold on this, testing with the SR1.5 dataset

@gidden
Copy link
Member Author

gidden commented Oct 16, 2018

Ok, found some other issues which are now fixed and tested. Finally ready, @danielhuppmann

@danielhuppmann
Copy link
Member

what can I say other than - amazing!

Copy link
Member

@danielhuppmann danielhuppmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

found one print() statement in a unit test

newdata = ['test_model1', 'test_scenario1', 'World', 'Primary Energy|Coal',
'EJ/y', 2015, 3.50]
df.data.loc[len(df.data) + 1] = newdata
print(df.data)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove print

@danielhuppmann
Copy link
Member

apology accepted - very glad that this doesn't only happens to me...

@danielhuppmann danielhuppmann merged commit 2fc38b2 into IAMconsortium:master Oct 17, 2018
@gidden gidden deleted the fill_between branch June 15, 2022 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants