Skip to content

Norm should be passed to facetgrid too #1160

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

Merged
merged 4 commits into from
Dec 9, 2016

Conversation

fmaussion
Copy link
Member

fixes #1159

cmap_params = _determine_cmap_params(self.data,
norm=mpl.colors.SymLogNorm(0.1))
self.assertIsNotNone(cmap_params['norm'])

Copy link
Member

Choose a reason for hiding this comment

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

Ideally, we can test this without having to test a private function like _determine_cmap_params. We should be able to check that the facet grid subplots are using the correct norm.

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks! done

Copy link
Member

Choose a reason for hiding this comment

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

I think we can get rid of this test then.

Copy link
Member

@jhamman jhamman left a comment

Choose a reason for hiding this comment

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

One last little comment and then this like it can go it.

cmap_params = _determine_cmap_params(self.data,
norm=mpl.colors.SymLogNorm(0.1))
self.assertIsNotNone(cmap_params['norm'])

Copy link
Member

Choose a reason for hiding this comment

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

I think we can get rid of this test then.

@fmaussion fmaussion merged commit 2c7730d into pydata:master Dec 9, 2016
@fmaussion fmaussion deleted the fixfacetnorm branch December 9, 2016 09:47
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.

Problem passing 'norm' when plotting a faceted figure
2 participants