Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plotly.express.imshow blurry when exported to pdf #4846

Open
leostimpfle opened this issue Nov 2, 2024 · 0 comments
Open

plotly.express.imshow blurry when exported to pdf #4846

leostimpfle opened this issue Nov 2, 2024 · 0 comments
Labels
bug something broken P2 considered for next cycle

Comments

@leostimpfle
Copy link

leostimpfle commented Nov 2, 2024

When writing plotly.express.imshow figure to pdf using write_image, the contents are rendered extremely blurry while axes and legends are rendered just fine: test.pdf

Code to produce figure:

import numpy as np
import plotly.express as px

np.random.seed(0)
data = np.random.randint(low=0, high=2, size=(10, 10))

fig = px.imshow(data)
fig.write_image('test.pdf', format='pdf')

I am using plotly version 5.24.1 and kaleido version 0.2.1.

@gvwilson gvwilson added bug something broken P2 considered for next cycle labels Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P2 considered for next cycle
Projects
None yet
Development

No branches or pull requests

2 participants