plotly / plotly.py

The interactive graphing library for Python :sparkles: This project now includes Plotly Express!
https://plotly.com/python/
MIT License
15.75k stars 2.52k forks source link

`FigureWidget` show wrong data #3878

Closed wang0618 closed 1 week ago

wang0618 commented 1 year ago

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 commented 1 year ago

It seems the theta data is wrong in figurewidget:

image

But the figure attributes of FigureWidget is correct:

image

empet commented 1 year ago

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

AaronStiff commented 1 year ago

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?

gvwilson commented 1 week ago

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