Skip to content

Commit 7a7aa06

Browse files
committed
use png instead of svg for docs output
1 parent d3d2e60 commit 7a7aa06

3 files changed

Lines changed: 24 additions & 24 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SimplexGridFactory"
22
uuid = "57bfcd06-606e-45d6-baf4-4ba06da0efd5"
33
authors = ["Juergen Fuhrmann <juergen.fuhrmann@wias-berlin.de>"]
4-
version = "2.1.0"
4+
version = "2.1.1"
55

66
[deps]
77
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"

examples/examples2d.jl

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function triangulation_of_domain()
4747
end
4848

4949
#
50-
# ![](triangulation_of_domain.svg)
50+
# ![](triangulation_of_domain.png)
5151
#
5252

5353
#
@@ -80,7 +80,7 @@ function nicer_triangulation_of_domain()
8080
builder
8181
end
8282
#
83-
# ![](nicer_triangulation_of_domain.svg)
83+
# ![](nicer_triangulation_of_domain.png)
8484
#
8585

8686
# ## Triangulation with subregions
@@ -120,7 +120,7 @@ function triangulation_of_domain_with_subregions()
120120
builder
121121
end
122122
#
123-
# ![](triangulation_of_domain_with_subregions.svg)
123+
# ![](triangulation_of_domain_with_subregions.png)
124124
#
125125

126126
# ## Direct specification of input arrays
@@ -138,7 +138,7 @@ function direct_square(Generator = Triangulate)
138138
regionvolumes = [0.01])
139139
end
140140
#
141-
# ![](direct_square.svg)
141+
# ![](direct_square.png)
142142
#
143143

144144
# ## Local refinement
@@ -179,7 +179,7 @@ function square_localref()
179179
builder
180180
end
181181
#
182-
# ![](square_localref.svg)
182+
# ![](square_localref.png)
183183
#
184184

185185
# ## Domain with holes
@@ -245,7 +245,7 @@ function swiss_cheese_2d()
245245
builder
246246
end
247247
#
248-
# ![](swiss_cheese_2d.svg)
248+
# ![](swiss_cheese_2d.png)
249249
#
250250

251251
# ## Glueing in another grid
@@ -297,7 +297,7 @@ function glue_2d()
297297
grid2 = glue(grid1, grid2)
298298
end
299299
#
300-
# ![](glue_2d.svg)
300+
# ![](glue_2d.png)
301301
#
302302

303303

@@ -307,27 +307,27 @@ using GridVisualize
307307
function generateplots(picdir; Plotter = nothing)
308308
if isdefined(Plotter, :Makie)
309309
size = (600, 300)
310-
Plotter.activate!(; type = "svg", visible = false)
310+
Plotter.activate!(; type = "png", visible = false)
311311

312312
p = builderplot(triangulation_of_domain(); Plotter, size)
313-
Plotter.save(joinpath(picdir, "triangulation_of_domain.svg"),p)
313+
Plotter.save(joinpath(picdir, "triangulation_of_domain.png"),p)
314314

315315
p = builderplot(nicer_triangulation_of_domain(); Plotter, size)
316-
Plotter.save(joinpath(picdir, "nicer_triangulation_of_domain.svg"),p)
316+
Plotter.save(joinpath(picdir, "nicer_triangulation_of_domain.png"),p)
317317

318318
p = builderplot(triangulation_of_domain_with_subregions(); Plotter, size)
319-
Plotter.save(joinpath(picdir, "triangulation_of_domain_with_subregions.svg"),p)
319+
Plotter.save(joinpath(picdir, "triangulation_of_domain_with_subregions.png"),p)
320320

321321
p = builderplot(square_localref(); Plotter, size)
322-
Plotter.save(joinpath(picdir, "square_localref.svg"),p)
322+
Plotter.save(joinpath(picdir, "square_localref.png"),p)
323323

324324
p = gridplot(direct_square(); Plotter, size)
325-
Plotter.save(joinpath(picdir, "direct_square.svg"),p)
325+
Plotter.save(joinpath(picdir, "direct_square.png"),p)
326326

327327
p = builderplot(swiss_cheese_2d(); Plotter, size)
328-
Plotter.save(joinpath(picdir, "swiss_cheese_2d.svg"),p)
328+
Plotter.save(joinpath(picdir, "swiss_cheese_2d.png"),p)
329329

330330
p = gridplot(glue_2d(); Plotter, size)
331-
Plotter.save(joinpath(picdir, "glue_2d.svg"),p)
331+
Plotter.save(joinpath(picdir, "glue_2d.png"),p)
332332
end
333333
end

examples/examples3d.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function tetrahedralization_of_cube()
5151

5252
simplexgrid(builder; maxvolume = 0.001)
5353
end
54-
# ![](tetrahedralization_of_cube.svg)
54+
# ![](tetrahedralization_of_cube.png)
5555

5656
# ## Cube based on primitves
5757
#
@@ -83,7 +83,7 @@ function tet_cube_with_primitives()
8383
simplexgrid(builder)
8484
end
8585

86-
# ![](tet_cube_with_primitives.svg)
86+
# ![](tet_cube_with_primitives.png)
8787

8888
# ## Glue-in of existing grid
8989
#
@@ -113,7 +113,7 @@ function glue_3d()
113113
glue(gouter, grid3; g1regions = 1:6, interface = 7)
114114
end
115115
#
116-
# ![](glue_3d.svg)
116+
# ![](glue_3d.png)
117117
#
118118

119119
# ## Load STL model
@@ -129,7 +129,7 @@ function stl_3d()
129129
simplexgrid(b; maxvolume = 1.0e-2)
130130
end
131131
#
132-
# ![](stl_3d.svg)
132+
# ![](stl_3d.png)
133133
#
134134

135135

@@ -142,19 +142,19 @@ function generateplots(picdir; Plotter = nothing)
142142

143143
Plotter.clf()
144144
gridplot(tetrahedralization_of_cube(); Plotter, size, zplane = 0.5)
145-
Plotter.savefig(joinpath(picdir, "tetrahedralization_of_cube.svg"))
145+
Plotter.savefig(joinpath(picdir, "tetrahedralization_of_cube.png"))
146146

147147
Plotter.clf()
148148
gridplot(tet_cube_with_primitives(); Plotter, size, zplane = 5, azim = 47, elev = 80, interior = false)
149-
Plotter.savefig(joinpath(picdir, "tet_cube_with_primitives.svg"))
149+
Plotter.savefig(joinpath(picdir, "tet_cube_with_primitives.png"))
150150

151151
Plotter.clf()
152152
gridplot(glue_3d(); Plotter, size, azim = 0, elev = 15, xplanes = [5])
153-
Plotter.savefig(joinpath(picdir, "glue_3d.svg"))
153+
Plotter.savefig(joinpath(picdir, "glue_3d.png"))
154154

155155
Plotter.clf()
156156
gridplot(stl_3d(); Plotter, size, xplanes = [5])
157-
Plotter.savefig(joinpath(picdir, "stl_3d.svg"))
157+
Plotter.savefig(joinpath(picdir, "stl_3d.png"))
158158

159159
end
160160
end

0 commit comments

Comments
 (0)