Skip to content

Commit 742e6bd

Browse files
committed
update to ExtendableGrids 7.2
1 parent 4e2b385 commit 742e6bd

File tree

4 files changed

+17
-15
lines changed

4 files changed

+17
-15
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
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 = "0.4.0"
4+
version = "0.4.1"
55

66
[deps]
77
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
@@ -16,7 +16,7 @@ Triangulate = "f7e6ffb2-c36d-4f8f-a77e-16e897189344"
1616
[compat]
1717
DocStringExtensions = "^0.8.0"
1818
ElasticArrays = "^1.2"
19-
ExtendableGrids = "^0.7"
19+
ExtendableGrids = "^0.7.2"
2020
TetGen = "^1.1"
2121
Triangulate = "^1.0"
2222
julia = "^1.3"

docs/make.jl

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
ENV["MPLBACKEND"]="agg"
22
using Documenter, SimplexGridFactory, ExtendableGrids, Literate, PyPlot
3+
using .GridVisualize
34

45
example_md_dir = joinpath(@__DIR__,"src","examples")
56

@@ -11,39 +12,39 @@ include(examples3d)
1112

1213
function makeplots(picdir)
1314
clf()
14-
gridplot(triangulation_of_domain(), Plotter=PyPlot)
15+
visualize(triangulation_of_domain(), Plotter=PyPlot)
1516
savefig(joinpath(picdir,"triangulation_of_domain.svg"))
1617

1718
clf()
18-
gridplot(nicer_triangulation_of_domain(), Plotter=PyPlot)
19+
visualize(nicer_triangulation_of_domain(), Plotter=PyPlot)
1920
savefig(joinpath(picdir,"nicer_triangulation_of_domain.svg"))
2021

2122
clf()
22-
gridplot(triangulation_of_domain_with_subregions(), Plotter=PyPlot)
23+
visualize(triangulation_of_domain_with_subregions(), Plotter=PyPlot)
2324
savefig(joinpath(picdir,"triangulation_of_domain_with_subregions.svg"))
2425

2526
clf()
26-
gridplot(square_localref(), Plotter=PyPlot)
27+
visualize(square_localref(), Plotter=PyPlot)
2728
savefig(joinpath(picdir,"square_localref.svg"))
2829

2930
clf()
30-
gridplot(direct_square(), Plotter=PyPlot)
31+
visualize(direct_square(), Plotter=PyPlot)
3132
savefig(joinpath(picdir,"direct_square.svg"))
3233

3334
clf()
34-
gridplot(swiss_cheese_2d(), Plotter=PyPlot)
35+
visualize(swiss_cheese_2d(), Plotter=PyPlot)
3536
savefig(joinpath(picdir,"swiss_cheese_2d.svg"))
3637

3738
clf()
38-
gridplot(swiss_cheese_2d(), Plotter=PyPlot)
39+
visualize(swiss_cheese_2d(), Plotter=PyPlot)
3940
savefig(joinpath(picdir,"swiss_cheese_2d.svg"))
4041

4142
clf()
42-
gridplot(tetrahedralization_of_cube(), Plotter=PyPlot, zplane=0.5)
43+
visualize(tetrahedralization_of_cube(), Plotter=PyPlot, zplane=0.5)
4344
savefig(joinpath(picdir,"tetrahedralization_of_cube.svg"))
4445

4546
clf()
46-
gridplot(tet_cube_with_primitives(), Plotter=PyPlot, zplane=5, azim=47, elev=80, interior=false)
47+
visualize(tet_cube_with_primitives(), Plotter=PyPlot, zplane=5, azim=47, elev=80, interior=false)
4748
savefig(joinpath(picdir,"tet_cube_with_primitives.svg"))
4849

4950

src/plot.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"""
44
$(TYPEDSIGNATURES)
55
6-
Two panel gridplot of gridfactory with input and resulting grid
6+
Two panel visualization of gridfactory with input and resulting grid
77
See [`default_options`](@ref) for available `kwargs`.
88
"""
9-
ExtendableGrids.gridplot(gb::SimplexGridBuilder; Plotter=nothing,kwargs...)= ExtendableGrids.gridplot(plottertype(Plotter), gb,Plotter;kwargs...)
9+
ExtendableGrids.GridVisualize.visualize(gb::SimplexGridBuilder; Plotter=nothing,kwargs...)= ExtendableGrids.GridVisualize.visualize(ExtendableGrids.GridVisualize.plottertype(Plotter), gb,Plotter;kwargs...)
1010

11-
function ExtendableGrids.gridplot(::Type{PyPlotType}, builder::SimplexGridBuilder,PyPlot ;kwargs...)
11+
function ExtendableGrids.GridVisualize.GridVisualize.visualize(::Type{GridVisualize.PyPlotType}, builder::SimplexGridBuilder,PyPlot ;kwargs...)
1212

13-
p=ExtendableGrids.GridPlotContext(Plotter=PyPlot, layout=(1,2), kwargs...)
13+
p=ExtendableGrids.GridVisualize.GridVisualizer(Plotter=PyPlot, layout=(1,2), kwargs...)
1414

1515
opts=blendoptions!(copy(builder.options);kwargs...)
1616

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using Test
22
using SimplexGridFactory
33
using ExtendableGrids
4+
using .GridVisualize
45
using Triangulate
56
using TetGen
67
using LinearAlgebra

0 commit comments

Comments
 (0)