Plot exported as PNG: low resolution
Open
Nobody has claimed this yet.
bug
P2
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
- Create a HTML file for a 3D surface plot using
write_html() - Open the HTML file in Google Chrome
135.0.7049.85on macOS15.4 - Click on Download plot as png
- The plot has a resolution of 1496 × 841 pixels only (private info redacted):
In comparison, when I take a screenshot of the same area, it's 3024×1696 pixels (a bit more than its double).
This issue might belong to https://github.com/plotly/plotly.py.
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.
Research direction
Reproduce the issue with a 3D surface plot generated by write_html() in Chrome on macOS, then trace the PNG download path in the exported HTML. Compare the downloaded image dimensions with the browser screenshot and determine whether the export accounts for the display pixel ratio; done means the PNG has the expected high-resolution dimensions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100