Blurry image while using plotly express

Hi, here attache two plots, one created by plotly express px.scatter which the data points are blurry…

While the other one created using graph object go.Figure().add_scatter which is sharp.
43%20PM

I am using mac with retina display, and I’ve tried setting different renderers with fig.show(renderer="xxx") but no luck… any idea that I can produce sharp image with plotly express like the generic fig.add_scatter do?

1 Like

For line plots, I used the parameter render_mode="svg" which solved the issue.

figure = px.line(df,
                 x=x
                 y=y
                 render_mode="svg")

For details see: https://plotly.com/python/webgl-vs-svg/