-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Figure factory: Plot a scalar field with geographical coordinates on map with projection #715
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
Comments
Would also love something similar! |
You can plot both heatmap and contour plots on maps. Take a look here: https://plot.ly/~Dreamshot/9147 or visit this user (Dreamshot) Plotly profile for more examples. |
Thanks! Will take a look :) |
Although it does not seem to support mapping per se. I mean, the data are on a lat-lon coordinates, but what if we want to change the projection? I don't see a proper support for maps right out of the box (or at least without creating a unique map for each use case). |
This blog should help: How to Create 2D and 3D Interactive Weather Maps in Python and R |
A geographic heatmap figure factory would be really nice! |
How about the progress here? It seems |
I also would like to plot any scallar (numpy array, xarray, etc) with a projeceted basemap in plotly just like is done on matplolib+cartopy integration |
I am currently using GeoMakie.jl (https://github.com/MakieOrg/GeoMakie.jl). Works really well! |
Nice, however it's in Julia. Is it possible to mix it inside a Python Plotly Dash app? |
Not sure. Using Python inside Julia is easy, the other way around is more difficult in my experience. This is actually the reason why I use Julia : this gives me access to Julia and 100% of Python's ecosystem. |
Of course, there are other methods out there, for Python cartopy stays the library of choice when it comes to map-based plots. A speedy and interactive data visualization tool stays, however, a rare feat. I support the request for the feature and think it would make a good unique selling point for plotly in the geosciences and adjacent communities. |
A quick side remark: All scripts implementing the requested functionality (see above in the thread) depend on basemap which has reached EoL and names cartopy as a recommended replacement. Thus there is currently no example of an efficient geospatial data representation in plotly. I will no further bump this thread, but I'd like to stress that I would really like the feature and hope that it isn't just me. |
I have an array of global temperatures and associated longitude and latitude coordinates arrays. I would like to plot the temperatures as a heatmap on a map with custom projection and showing coastlines.
A working code example using matplotlib is:
The output figure from code block above is (data available here):

At the moment I was only able to use plotly for a simple heatmap with the following code:
As next figure shows, main issues are:
the projection is not working;
no coastlines are shown.

The text was updated successfully, but these errors were encountered: