plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

`FigureWidget` show wrong data

Open wang0618 opened this issue 2 years ago • 2 comments

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

image

wang0618 avatar Sep 05 '22 08:09 wang0618

It seems the theta data is wrong in figurewidget:

image

But the figure attributes of FigureWidget is correct:

image

wang0618 avatar Sep 05 '22 08:09 wang0618

I get the same plot and displayed values on hover, for both figures, with the same Plotly version.

empet avatar Sep 05 '22 09:09 empet

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?

AaronStiff avatar Mar 18 '23 17:03 AaronStiff

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

gvwilson avatar Jul 11 '24 14:07 gvwilson