plotly.py
plotly.py copied to clipboard
`FigureWidget` show wrong data
When I use a scatter polar Figure object to construct a FigureWidget, I find the FigureWidget display wrong data.
import plotly.express as px
import plotly.graph_objects as go
r = [71.7011, 7.0021, 2.7335, 24.0294, 69.2684]
theta = [29.7066, 91.0809, 43.1147, 182.1037, 312.1727]
fig = px.scatter_polar(r=r, theta=theta, height=300)
fig
fig_widget = go.FigureWidget(fig)
fig_widget
It seems the theta data is wrong in figurewidget:
But the figure attributes of FigureWidget is correct:
I get the same plot and displayed values on hover, for both figures, with the same Plotly version.
Hi @wang0618. This seems to be working for me on recent versions of plotly.py
and plotly.js
(5.13.1, 2.18.2). Could you confirm?
Hi - we are tidying up stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for a while, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. If you'd like to submit a PR, we'd be happy to prioritize a review, and if it's a request for tech support, please post in our community forum. Thank you - @gvwilson