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

Filled contours are broken in matplotlib 1.5 #65

Closed
dfm opened this issue Nov 16, 2015 · 4 comments

Comments

@dfm
Copy link
Owner

commented Nov 16, 2015

This isn't what is supposed to happen!!

hist2d_filled

@zblz

This comment has been minimized.

Copy link
Contributor

commented Nov 18, 2015

See matplotlib/matplotlib#5477 and matplotlib/matplotlib#5485. As far as I can tell it would be solved by sorting the levels before passing them onto plt.contourf.

@dfm

This comment has been minimized.

Copy link
Owner Author

commented Nov 19, 2015

Thanks for this! I don't think that it'll be quite as easy as sorting... we want the "each level to infinity" style from your link not the "increasing levels" style. But I'm sure it won't be hard to fix based on this! I'll try to do it later today. Thanks again!

@tacaswell

This comment has been minimized.

Copy link
Contributor

commented Nov 23, 2015

Are you using the 'each level to infinity' to get the alpha blending? If that is the case, it would be easier to use a color map which has alpha in some of the values and an increasing set of levels.

@dfm

This comment has been minimized.

Copy link
Owner Author

commented Nov 23, 2015

@tacaswell: I'm sure there must be a better way! Here's the current (hackish/embarrassing) implementation that I wrote years ago. Any suggestions you have would be much appreciated.

https://github.com/dfm/corner.py/blob/master/corner.py#L479

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.