Open ahbarnett opened 8 months ago
ah, could you post where in the docs you found that? It is pretty outdated and the update=false
syntax is the correct way forward.
Thanks for catching this!
Looking at
https://docs.makie.org/stable/explanations/scenes/
https://docs.makie.org/stable/explanations/cameras/
I don't see anything about update=false
. It would be great to add this to the examples and docs.
Eg, latter page has:
_zoom!(scene, zoom_step) will change the zoom level of the scene without translating or rotating the scene. zoom_step applies multiplicatively to cam.zoom_mult which is used as a multiplier to the fov (perspective projection) or width and height (orthographic projection). ... Often, when modifying the Scene, the camera can get "out of sync" with the Scene. To fix this, you can call the updatecam! function on the Scene.
I also in CairoMakie can't get the zoom! or update_cam! to affect anything in the screen or saved PNG, so am stuck... should I post a separate issue?
]activate --temp; add Makie
)In fresh env:
Results of two outputs (no zoom applied):
The save operation (or even just replotting via
f
) undoes the zoom. Adding the recommendedupdate_cam!(a.scene,cameracontrols(a.scene))
after the zoom has no effect :( I recently found this old discourse https://discourse.julialang.org/t/zoom-in-glmakie-3d-plot-then-save/65745/10 explaining to usesave("test2.png",f;update=false)
which does work. Could this crucial workaround be added to the Troubleshooting and/or docs on zoom?Thanks! Alex