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
following this discussion on how to save a figure to an IOBuffer, i have found that setting markerspace to :data results in the marks being absent from the resulting PDF. with markerspace unspecified, everything works.
MWE:
using WGLMakie, CairoMakie, Base64, Bonito
app = App() do
f = Figure()
a, s = scatter(f[1,1], Point3f.(rand(10), rand(10), rand(10)),
markersize = 0.03, markerspace = :data # delete this line and it will work
)
CairoMakie.activate!()
io = IOBuffer()
show(io, MIME"application/pdf"(), f)
io2 = IOBuffer()
print(io2, "data:application/pdf;base64,")
print(io2, base64encode(take!(io)))
DOM.div(f,
"Click to download ",
DOM.a("scatter.pdf",
href=String(take!(io2)),
download="scatter.pdf"))
end
screenshot of GUI:
screenshot of PDF:
the latest version(s) of Makie freshly installed into a temporary environment on an apple M2 max:
(jl_Us6BFN) pkg> st
Status `/private/var/folders/s5/8d629n5d7nsf37f60_91wzr40000gq/T/jl_Us6BFN/Project.toml`
[824d6782] Bonito v4.0.0
[13f3f980] CairoMakie v0.12.16
[276b4fcb] WGLMakie v0.10.16
[2a0f44e3] Base64 v1.11.0
The text was updated successfully, but these errors were encountered:
following this discussion on how to save a figure to an IOBuffer, i have found that setting
markerspace
to:data
results in the marks being absent from the resulting PDF. withmarkerspace
unspecified, everything works.MWE:
screenshot of GUI:
screenshot of PDF:
the latest version(s) of Makie freshly installed into a temporary environment on an apple M2 max:
The text was updated successfully, but these errors were encountered: