You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Plotly and my Python environment is as follows:
python==3.11.6
plotly==5.18.0
kaleido==0.2.1
When I write the following code and execute:
import plotly.express as px
# Create multiple figure objects
fig1 = px.scatter(x=[1, 2, 3], y=[4, 5, 6], title="Figure 1")
fig2 = px.bar(x=[1, 2, 3], y=[7, 8, 9], title="Figure 2")
fig3 = px.line(x=[1, 2, 3], y=[10, 11, 12], title="Figure 3")
# Specify the order in which you want to save the figures
figures_to_save = [fig1, fig2, fig3]
# Loop through the figures and save them in the desired order
for i, fig in enumerate(figures_to_save):
fig.write_image(f"figure_{i+1}.png")
The generated figure is misordered as follows: figure_1.png figure_2.png figure_3.png
I wonder why this happens and how I can fix it?
The text was updated successfully, but these errors were encountered:
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
I am using Plotly and my Python environment is as follows:
When I write the following code and execute:
The generated figure is misordered as follows:
figure_1.png
figure_2.png
figure_3.png
I wonder why this happens and how I can fix it?
The text was updated successfully, but these errors were encountered: