-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
ScatterMapbox subplots not working #1728
Comments
Hi, I have the same issue using the Mapbox choropleth. |
Personally I gave up trying to do that. |
It seems indeed that mapbox traces don't interact well with subplots. You can still define more manually the domain of subplots as explained in https://community.plot.ly/t/subloting-mapbox-in-jupyter-notebook/16126. Below is an example with a more recent syntax
|
Thank you for your quick replies! It just worked for me using the
While printing out my figure's layout But for using more than 1 subplot, you need to set |
What Plotly version are you running? With 4.5.2 the usual code for defining mapbox-type subplots, and updating layout works as expected:
|
@Timost If you want the styles to be the same across all of your subplots you can also run: fig.update_mapboxes(style='open-street-map) This will mean you won't need to call add |
@bandersen23 Wow thank you for the answer ! Good to know ! I'll keep that I mind for next time. |
@bandersen23 Life saver! |
@archmoj is this addressed by your recent work? |
@gvwilson |
Possibly related to plotly/plotly.js#7068. |
@birkskyum There is a way using this script and a successful run CircleCI run of |
Hi,
First of all thank you for making plotly. It's amazing.
I've been trying to make a subplot of ScatterMapbox (e.g.: Two maps, one below the other) without success. I'm trying this in a jupyter notebook:
The code I use is:
This results in an empty map:
In my browser console I have:
Passing a
mapbox_style
to the layout does not seem to solve the issue.Note that running the simple montreal example from the doc works properly, even adding a single map to the subplot works too:
I've tried passing multiple
Scattermapbox
to a figure's data but this results in two mapbox layers in the same map. At this point I'm starting to think that subplots are not supported with scattermapbox but as could not find anything regarding this in the docs, I'm probably missing something.The text was updated successfully, but these errors were encountered: