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

Artifacts with contourf! and orthogonal projection #119

Open
tpoisot opened this issue Jun 23, 2022 · 3 comments
Open

Artifacts with contourf! and orthogonal projection #119

tpoisot opened this issue Jun 23, 2022 · 3 comments
Labels
bug Something isn't working Makie An issue in base Makie

Comments

@tpoisot
Copy link

tpoisot commented Jun 23, 2022

Here is the result of using the orthogonal projection with contourf! -- it works fine with surface! (on CairoMakie):

contourf

No idea where this is coming from, but I thought it was worth reporting?

@asinghvi17
Copy link
Member

Ah - if I am not wrong that's an incorrect "projection" of some units of the contourf polygons from Infinity, which Proj transforms elements which are "off the map" into. There might be a quick fix for this by simply replacing any point with an Inf with a NaN point...

I am on vacation now but will get back to this in a couple of days. Until then you could try to only plot the section of your grid which is represented on the map projection...

@tpoisot
Copy link
Author

tpoisot commented Jun 24, 2022

So, all of the values are either Float64 or NaN already, and the coordinates are all valid (it works with surface!). I might try the second solution (but it's very much not urgent, just wanted to give you a heads up that contourf! had a weird behavior with this projection).

@asinghvi17 asinghvi17 added the makiecon Issues to address at MakieCon label Mar 26, 2023
@asinghvi17
Copy link
Member

This is still an issue with Makie, I guess the best alternative is to use heatmap or surface with a categorical colormap, unfortunately.

@asinghvi17 asinghvi17 added bug Something isn't working Makie An issue in base Makie and removed makiecon Issues to address at MakieCon labels Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Makie An issue in base Makie
Projects
None yet
Development

No branches or pull requests

2 participants