Skip to content

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

Open
@leostimpfle

Description

@leostimpfle

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2considered for next cyclebugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions