From 7a7aa0684a250c41f56967b1b73188aa5b8fbad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Fuhrmann?= Date: Fri, 7 Jun 2024 16:29:32 +0200 Subject: [PATCH] use png instead of svg for docs output --- Project.toml | 2 +- examples/examples2d.jl | 30 +++++++++++++++--------------- examples/examples3d.jl | 16 ++++++++-------- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/Project.toml b/Project.toml index fe6b3ff..e7ebc38 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "SimplexGridFactory" uuid = "57bfcd06-606e-45d6-baf4-4ba06da0efd5" authors = ["Juergen Fuhrmann "] -version = "2.1.0" +version = "2.1.1" [deps] DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae" diff --git a/examples/examples2d.jl b/examples/examples2d.jl index d355546..ef294cd 100644 --- a/examples/examples2d.jl +++ b/examples/examples2d.jl @@ -47,7 +47,7 @@ function triangulation_of_domain() end # -# ![](triangulation_of_domain.svg) +# ![](triangulation_of_domain.png) # # @@ -80,7 +80,7 @@ function nicer_triangulation_of_domain() builder end # -# ![](nicer_triangulation_of_domain.svg) +# ![](nicer_triangulation_of_domain.png) # # ## Triangulation with subregions @@ -120,7 +120,7 @@ function triangulation_of_domain_with_subregions() builder end # -# ![](triangulation_of_domain_with_subregions.svg) +# ![](triangulation_of_domain_with_subregions.png) # # ## Direct specification of input arrays @@ -138,7 +138,7 @@ function direct_square(Generator = Triangulate) regionvolumes = [0.01]) end # -# ![](direct_square.svg) +# ![](direct_square.png) # # ## Local refinement @@ -179,7 +179,7 @@ function square_localref() builder end # -# ![](square_localref.svg) +# ![](square_localref.png) # # ## Domain with holes @@ -245,7 +245,7 @@ function swiss_cheese_2d() builder end # -# ![](swiss_cheese_2d.svg) +# ![](swiss_cheese_2d.png) # # ## Glueing in another grid @@ -297,7 +297,7 @@ function glue_2d() grid2 = glue(grid1, grid2) end # -# ![](glue_2d.svg) +# ![](glue_2d.png) # @@ -307,27 +307,27 @@ using GridVisualize function generateplots(picdir; Plotter = nothing) if isdefined(Plotter, :Makie) size = (600, 300) - Plotter.activate!(; type = "svg", visible = false) + Plotter.activate!(; type = "png", visible = false) p = builderplot(triangulation_of_domain(); Plotter, size) - Plotter.save(joinpath(picdir, "triangulation_of_domain.svg"),p) + Plotter.save(joinpath(picdir, "triangulation_of_domain.png"),p) p = builderplot(nicer_triangulation_of_domain(); Plotter, size) - Plotter.save(joinpath(picdir, "nicer_triangulation_of_domain.svg"),p) + Plotter.save(joinpath(picdir, "nicer_triangulation_of_domain.png"),p) p = builderplot(triangulation_of_domain_with_subregions(); Plotter, size) - Plotter.save(joinpath(picdir, "triangulation_of_domain_with_subregions.svg"),p) + Plotter.save(joinpath(picdir, "triangulation_of_domain_with_subregions.png"),p) p = builderplot(square_localref(); Plotter, size) - Plotter.save(joinpath(picdir, "square_localref.svg"),p) + Plotter.save(joinpath(picdir, "square_localref.png"),p) p = gridplot(direct_square(); Plotter, size) - Plotter.save(joinpath(picdir, "direct_square.svg"),p) + Plotter.save(joinpath(picdir, "direct_square.png"),p) p = builderplot(swiss_cheese_2d(); Plotter, size) - Plotter.save(joinpath(picdir, "swiss_cheese_2d.svg"),p) + Plotter.save(joinpath(picdir, "swiss_cheese_2d.png"),p) p = gridplot(glue_2d(); Plotter, size) - Plotter.save(joinpath(picdir, "glue_2d.svg"),p) + Plotter.save(joinpath(picdir, "glue_2d.png"),p) end end diff --git a/examples/examples3d.jl b/examples/examples3d.jl index c30194b..ebf39b6 100644 --- a/examples/examples3d.jl +++ b/examples/examples3d.jl @@ -51,7 +51,7 @@ function tetrahedralization_of_cube() simplexgrid(builder; maxvolume = 0.001) end -# ![](tetrahedralization_of_cube.svg) +# ![](tetrahedralization_of_cube.png) # ## Cube based on primitves # @@ -83,7 +83,7 @@ function tet_cube_with_primitives() simplexgrid(builder) end -# ![](tet_cube_with_primitives.svg) +# ![](tet_cube_with_primitives.png) # ## Glue-in of existing grid # @@ -113,7 +113,7 @@ function glue_3d() glue(gouter, grid3; g1regions = 1:6, interface = 7) end # -# ![](glue_3d.svg) +# ![](glue_3d.png) # # ## Load STL model @@ -129,7 +129,7 @@ function stl_3d() simplexgrid(b; maxvolume = 1.0e-2) end # -# ![](stl_3d.svg) +# ![](stl_3d.png) # @@ -142,19 +142,19 @@ function generateplots(picdir; Plotter = nothing) Plotter.clf() gridplot(tetrahedralization_of_cube(); Plotter, size, zplane = 0.5) - Plotter.savefig(joinpath(picdir, "tetrahedralization_of_cube.svg")) + Plotter.savefig(joinpath(picdir, "tetrahedralization_of_cube.png")) Plotter.clf() gridplot(tet_cube_with_primitives(); Plotter, size, zplane = 5, azim = 47, elev = 80, interior = false) - Plotter.savefig(joinpath(picdir, "tet_cube_with_primitives.svg")) + Plotter.savefig(joinpath(picdir, "tet_cube_with_primitives.png")) Plotter.clf() gridplot(glue_3d(); Plotter, size, azim = 0, elev = 15, xplanes = [5]) - Plotter.savefig(joinpath(picdir, "glue_3d.svg")) + Plotter.savefig(joinpath(picdir, "glue_3d.png")) Plotter.clf() gridplot(stl_3d(); Plotter, size, xplanes = [5]) - Plotter.savefig(joinpath(picdir, "stl_3d.svg")) + Plotter.savefig(joinpath(picdir, "stl_3d.png")) end end