Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render pcolormesh plots as SVG files with rasterization #376

Open
redeboer opened this issue Feb 26, 2025 · 0 comments
Open

Render pcolormesh plots as SVG files with rasterization #376

redeboer opened this issue Feb 26, 2025 · 0 comments
Assignees
Labels
⚙️ Enhancement Improvements and optimizations of existing features

Comments

@redeboer
Copy link
Member

redeboer commented Feb 26, 2025

pcolormesh plots like the intensity and the uncertainty distributions as well as scatter plots are currently exported as PNG, because SVG becomes too bloated. But by enabling rasterization, the plot region with the distributions becomes a PNG, whereas the axis are still vector graphics. In fact, using dpi with rasterization (i.e., when exporting as PNG) results in a reduction of the quality on the edges on each pixel in the pcolormesh.
https://matplotlib.org/3.10.0/gallery/misc/rasterization_demo.html

@redeboer redeboer added the ⚙️ Enhancement Improvements and optimizations of existing features label Feb 26, 2025
@redeboer redeboer self-assigned this Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚙️ Enhancement Improvements and optimizations of existing features
Projects
None yet
Development

No branches or pull requests

1 participant