plotly / plotly/plotly.js

Plot exported as PNG: low resolution

Open
#7,402 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P2
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

  1. Create a HTML file for a 3D surface plot using write_html()
  2. Open the HTML file in Google Chrome 135.0.7049.85 on macOS 15.4
  3. Click on Download plot as png
  4. The plot has a resolution of 1496 × 841 pixels only (private info redacted):
    Image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.