plotly / Kaleido

Fast static image export for web-based visualization libraries with zero dependencies
Other
363 stars 36 forks source link

Inconsistent marker size in 3D figures #178

Open robert-lieck opened 5 months ago

robert-lieck commented 5 months ago

Showing a Scatter3D figure in the browser and saving it produces different results, in particular, the marker sizes are inconsistent between the two.

Reproducible with the following code:

import plotly.graph_objects as go

fig = go.Figure()
fig.add_trace(go.Scatter3d(x=[0, 1], y=[0, 0], z=[0, 0]))
fig.update_layout(height=500, width=500)
fig.show()
fig.write_image("figure.png", height=500, width=500)

Screenshot from the browser: Screenshot from 2024-04-11 21-04-48

Saved figure: figure

gvwilson commented 2 months ago

Thanks for your interest in Kaleido. We are currently working on an overhaul that might address your issue - we hope to have news in a few weeks and will post an update then. Thanks - @gvwilson

robert-lieck commented 2 months ago

Thanks for the info @gvwilson, looking forward!