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

Panel label #90

Merged
merged 7 commits into from Sep 18, 2018
Merged

Panel label #90

merged 7 commits into from Sep 18, 2018

Conversation

danielhuppmann
Copy link
Member

@danielhuppmann danielhuppmann commented Sep 17, 2018

Please confirm that this PR has done the following:

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

Description

This PR adds a function to the plotting library to set a "panel label", which is by default placed in the top-left corner of an Axes object.

pyam/plotting.py Outdated
The column to use for y-axis values
default: value
"""
if ax is not None:
Copy link
Member

Choose a reason for hiding this comment

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

suggest moving the _lim_loc function up inside here if this is the only place we use it

@gidden
Copy link
Member

gidden commented Sep 17, 2018

failure could be because of the freetype version, but not sure.

@danielhuppmann
Copy link
Member Author

I think that failure is due to wrong matplotlib version (2.1.2 on CI, 2.2.2 locally for generating the test figure) - but 2.1.2 doesn't run on Mac for some framework problem. @gidden, can you generate the test figure and PR into my branch?

@gidden
Copy link
Member

gidden commented Sep 17, 2018

done

@@ -388,3 +388,11 @@ def test_stack_plot_other(plot_df):
.stack_plot(ax=ax, stack='scenario', cmap='viridis', title='foo')
)
return fig


@pytest.mark.skipif(IS_WINDOWS, reason=WINDOWS_REASON)
Copy link
Member

Choose a reason for hiding this comment

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

this needs to be deleted now. apologies, I was thrashing in CI and removed this from other functions.

@gidden
Copy link
Member

gidden commented Sep 17, 2018

one final bit, then g2g

@danielhuppmann
Copy link
Member Author

good to go, @gidden!

@danielhuppmann
Copy link
Member Author

now with release notes...

@gidden gidden merged commit 5044232 into IAMconsortium:master Sep 18, 2018
@danielhuppmann danielhuppmann deleted the panel_label branch September 18, 2018 07:39
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

2 participants