Closed
Description
Using version 4.10.0 for plotly and 0.0.3.post1 for kaleido, the write_image("*.png")
does not produce any visible points.
The plot should look like this (works in jupyter notebook):
And after exporting as static format (doesnt matter which format, fails for all), produces this:
The underlying data set looks like this (with the blacked out "ID" column):
Export as html works perfectly fine. Downloading from browser also works (but as I understand from kaleido docs, that utilizes the browsers internal utilities?).
The code I used is:
# some imports
import numpy as np
import pandas as pd
import plotly.express as px
# ... creating the summer data set
fig = px.scatter(summer, x=summer["Time"], y=summer["Measured Emission"], color="ID", facet_row="operating state", height=800, width=1200, category_orders={"operating state": [0, 1, 2, 3]}, title="lalala", marginal_y="box", log_y=True)
fig = fig.for_each_annotation(lambda a: a.update(text=a.text.replace("ID=", "")))
fig = fig.for_each_annotation(lambda a: a.update(text=a.text.replace("operating state=", "Operating state: ")))
fig = fig.update_traces(marker=dict(size=1.5))
fig = fig.update_yaxes(matches=None)
fig.write_html("some.html")
fig.write_image("some.png", engine="kaleido")
fig.show()
Is this due to rastering? I also tried exporting in higher resolution, but it did not change anything.