-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fig.add_vline fails on figure with a separate subplot containing Scatter3d #3874
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
Three different behaviours for permutations of the order of the # Works as intended
fig.add_scatter(x=[0, 1], y=[0, 1], row=1, col=1)
fig.add_vline(x=0.5, col=1)
fig.add_scatter3d(x=[0, 1], y=[0, 1], z=[0, 1], row=1, col=2) # Vertical line missing
fig.add_vline(x=0.5, col=1)
fig.add_scatter(x=[0, 1], y=[0, 1], row=1, col=1)
fig.add_scatter3d(x=[0, 1], y=[0, 1], z=[0, 1], row=1, col=2) # Exception raised
fig.add_scatter3d(x=[0, 1], y=[0, 1], z=[0, 1], row=1, col=2)
fig.add_scatter(x=[0, 1], y=[0, 1], row=1, col=1)
fig.add_vline(x=0.5, col=1) And the exception stack trace:
|
Looks like this is related to #3424 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code creates a 2D subplot in the left column and a 3D subplot in the right column. Adding a vertical line to the 2D subplot fails if a
Scatter3d
has been added to the 3D subplot.Another bug shown in this example is that
add_vline
does not add any annotations if the plot is empty.(Plotly version 5.9.0)
The text was updated successfully, but these errors were encountered: