`plotly.express.imshow` blurry when exported to pdf
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- plotly, python
- Domain
- data-visualization
Research direction
Start by reproducing the issue with the provided NumPy and plotly.express.imshow example, using fig.write_image('test.pdf', format='pdf') and the reported plotly and kaleido versions. Compare the exported image content with the axes and legends; done means the image is rendered sharply in the PDF without degrading the other elements.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Python
- Stars
- 18.8k
- Forks
- 2.8k
- Avg merge
- 13h 41m
- Merged PRs (30d)
- 21
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from plotly/plotly.py
-
P3 size: 1 task
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
P3 size: 1 task
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug P1
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
feature P3
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
feature P3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
All issues in plotly/plotly.py
Similar issues
-
essnmx good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
[Feature] 奇物选择添加优先级 Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
syfoud/Simulated_Scepter#174 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Giskard-AI/giskard-oss#2840 · 1 comment ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Openarea: repo bug perceived difficulty: 2
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
yeti-platform/yeti#1380 ·