plotly scattergl renders points inaccurately on M1/M2 chip #8169
Labels
feature:st.plotly_chart
priority:P3
status:confirmed
Bug has been confirmed by the Streamlit team
type:bug
Something isn't working
upstream
Checklist
Summary
A known issue for webgl rendering on macs (plotly/plotly.js#6820) has been fixed in the recent plotly.js 2.28.0 release, which was ported to python in the plotly.py 5.19.0 release (plotly/plotly.py#4476).
I've verified that the rendering is now fixed in a vanilla jupyter notebook, but still persists in the same plotly chart rendered from streamlit. In both screenshots, the top plot uses webgl rendering, while the bottom plot uses svg. They are expected to be identical.
Jupyter:
Streamlit:
The streamlit plot still exhibits the same pre-patch plotly behavior where points "disappear" when zooming in (it should be centered but is stuck to the left side)
Reproducible Code Example
Steps To Reproduce
Run the example via streamlit run (and jupyter server using
fig.show()
instead)Expected Behavior
Plots are rendered identically with no zoom issues.
Current Behavior
webgl plots are rendered incorrectly
Is this a regression?
Debug info
Additional Information
No response
The text was updated successfully, but these errors were encountered: