Open ghost opened 7 years ago
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 geoviews
supports this function, but that's sometimes slow.
Similar question is on the forum.
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!
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?
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):![map](https://cloud.githubusercontent.com/assets/9553668/24002863/1d11b742-0a62-11e7-866b-7c5ca2b49d7e.png)
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.![heatmap](https://cloud.githubusercontent.com/assets/9553668/24004032/7fc01e30-0a65-11e7-96d9-c425204d43ea.png)