Skip to content

Plot's saved image is resampled and details are lost. #3603

@Nemecsek

Description

@Nemecsek

I produce a histogram plot to show how some power values exceed a threshold.
This is what I see onscreen (snapshot with Spectacle in Ubuntu):
screen_snapshot
As you can see, on the right of the red line there are some outliers.

Saving the image by pressing the Camera icon without changing any parameter, these details are lost:
plotly_save

I tried to save the image with pio instead:

import plotly.io as pio  # uses kaleido
...
pio.write_image(fig, 'filename.png', width=2000, height=750) 

and at high resolution the details are again missing:
2000pixel

At a lower resolution (width=1000px, height=375), they are shown:
1000pixel

I understand that it is a problem with bitmap resampling, but results should be consistent and possibly based on what it is seen onscreen. A customer of mine complained that he couldn't see the outliers in a couple of plots out of a dozen, while onscreen I could see them all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions