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
Add single-plot rasterization capability to CairoMakie #1872
Conversation
That's a great feature! This will be handy for plotting maps. It would be great to have that as a global option as well. Pluto displays |
I think that this could actually be themable as it is now - if you set |
Could you add a test a la: https://github.com/JuliaPlots/Makie.jl/blob/master/CairoMakie/test/svg_tests.jl ? |
Co-authored-by: Simon Danisch <sdanisch@protonmail.com>
The CI failure on Makie/Julia 1 does not appear to be related - seems related to mouse click detection. |
@Datseris this may be useful if you are saving GeoMakie plots to pdf - just pass |
Description
Allows the user to tell CairoMakie to rasterize individual Plots in a Scene, by setting
plt.rasterize = scale::Int || true
.CairoMakie will rasterize that specific plot to an image with
scale^2
pixels per Scene pixel (1 px per scene px if scale=1 or scale=true) and draw it to the main context. The drawing order also preserves the z-order of the scene.This has the potential to drastically decrease file sizes, which is extremely useful for publication plots and large meshes.
Type of change
Checklist