Saving figures

Save the figure returned by visualize:

AdaptiveVisualization.save(fig, "example"; dpi=300)

This writes OutputFiles/example.png relative to the working directory.

AdaptiveVisualization.save — Function
save(fig::GLMakie.Figure, filename::String; file_extension="png", dpi=300)

Save a GLMakie figure under OutputFiles/ unless filename already starts with that directory. The path is relative to the current working directory; missing parent directories are created. If the filename does not end with file_extension, append "." * file_extension (an existing different extension is not replaced). Supply the extension without a leading dot.

dpi controls raster scaling through Makie's px_per_unit=dpi/150; the default dpi=300 uses two pixels per figure unit. Returns the final filename.

source