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

How to make histogram with certain projection? #302

Closed
hu-mingyu opened this issue Jan 7, 2025 · 1 comment
Closed

How to make histogram with certain projection? #302

hu-mingyu opened this issue Jan 7, 2025 · 1 comment

Comments

@hu-mingyu
Copy link

how to plot this image in the gallery? Or rather, how to set the axis of Hist2D?
Image

I define Figure and GeoAxis before `Hist2D', but the command of destination projection seems to be ignored...

my code (the valuables are defined as https://geo.makie.org/v0.7.9/examples/histogram ):

fig = GeoMakie.Figure(); ax = GeoAxis(fig[1,1]; source="+proj=latlong", dest="+proj=hammer"); h = Hist2D((first.(latlong_data), last.(latlong_data)); nbins = (360, 180));
the result is Image, not Hammer projection, without longitude/latitude lines, transparent background...

@asinghvi17
Copy link
Member

asinghvi17 commented Jan 14, 2025

The picture you have attached is not a Makie plot, but rather the display of StatsBase's Hist2D in your browser or notebook.

See https://geo.makie.org/dev/examples/histogram#:~:text=It%27s%20simple%20to%20plot%20to%20GeoAxis%3A (scroll to the bottom of the page) - it looks like there's a display error with Hist2D which makes it take up a lot of space on the page.

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

No branches or pull requests

2 participants