-
-
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
Can't draw spike line across subplots with make_subplots in 4.0.0 #1677
Comments
I found it because now each axis made by make_subplots is an individual object even shared_xaxes=True. This is mentioned in https://plot.ly/python/v4-migration/. So it is actually "across" the plot are for the axis object but I want enhancement in order to draw it like version3xx did.. |
As a simple workaround, you can just do |
Thanks it works! |
Note that this would only work on single column subplots. Can spikes be syncronized in two separate axis? |
I can confirm that the workaround of naming axes identically doesn't work when one or more subplots are using a distinct axis. In my application I have two columns where the first column contains a single subplot, and the second column has 6 subplots with a shared x-axis. But none of these shared axes act as a common axis. I wanted to mention that the plotly documentation gives another workaround here: https://plotly.com/python/subplots/#subplots-with-shared-axes-lowlevel-api Basicly, you will create a scatter plot for each "subplot", then you will manually define the axis names and domains of each "subplot", using the domains to arrange the "subplots" (they aren't technically subplots because you aren't using any plotly function with subplot in its name) as you desire. |
any updates on this issue? |
After upgrading to plotly 4.0.0, I can't see how to create a spike line across shared axes created with make_subplots.
Previously I was using code like this:
The resulting figure showed spike lines across axes because only one x axis was created:

But in 4.0, multiple x axes are created so the spike line no longer draws across all subplots:

Is there any way around this? Thanks!
The text was updated successfully, but these errors were encountered: