You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 13, 2021. It is now read-only.
When you save a CairoMakie figure, you can change the mapping from figure resolution to pixels (when saving to png) or points (when saving to svg or pdf).
68
68
This way you can easily scale the resulting image up or down without having to change any plot element sizes.
69
69
70
-
Just specify `pt_per_unit` when saving vector formats and `px_per_unit` when saving pngs. Both default to 1.
70
+
Just specify `pt_per_unit` when saving vector formats and `px_per_unit` when saving pngs.
71
+
`px_per_unit` defaults to 1 and `pt_per_unit` defaults to 0.75.
72
+
When embedding svgs in websites, `1px` is equivalent to `0.75pt`.
73
+
This means that by default, saving a png or an svg results in an embedded image of the same apparent size.
74
+
If you require an exact size in `pt`, consider setting `pt_per_unit = 1`.
0 commit comments