@@ -91,7 +91,7 @@ Plot 2D slice of 3D data.
9191## Keywords
9292$_common_keyword_axis_label
9393"""
94- function plot_slice! (f:: Figure , ax:: GLMakie .Axis , pos:: AbstractArray{T,3} , data:: AbstractArray{S,3} , n:: Int , units = nothing ;
94+ function plot_slice! (f:: Figure , ax:: Makie .Axis , pos:: AbstractArray{T,3} , data:: AbstractArray{S,3} , n:: Int , units = nothing ;
9595 xaxis = :x ,
9696 yaxis = :y ,
9797 kw...
@@ -107,17 +107,17 @@ function plot_slice!(f::Figure, ax::GLMakie.Axis, pos::AbstractArray{T,3}, data:
107107 if data isa StructArray # arrows plot
108108 ux, uy = ustrip .(pack_xy (z; xaxis, yaxis))
109109 if xid > yid
110- GLMakie . arrows ! (ax, x, y, uy, ux; kw... )
110+ Makie . arrows2d ! (ax, x, y, uy, ux; kw... )
111111 else
112- GLMakie . arrows ! (ax, x, y, ux, uy; kw... )
112+ Makie . arrows2d ! (ax, x, y, ux, uy; kw... )
113113 end
114114 else
115115 if xid > yid
116- ht = GLMakie . heatmap! (ax, x, y, ustrip .(Array (transpose (z))); kw... )
117- GLMakie . Colorbar (f[1 ,2 ], ht)
116+ ht = Makie . heatmap! (ax, x, y, ustrip .(Array (transpose (z))); kw... )
117+ Makie . Colorbar (f[1 ,2 ], ht)
118118 else
119- ht = GLMakie . heatmap! (ax, x, y, ustrip .(Array (z)); kw... )
120- GLMakie . Colorbar (f[1 ,2 ], ht)
119+ ht = Makie . heatmap! (ax, x, y, ustrip .(Array (z)); kw... )
120+ Makie . Colorbar (f[1 ,2 ], ht)
121121 end
122122 end
123123end
@@ -139,7 +139,7 @@ function plot_slice(m::MeshCartesianStatic, symbol::Symbol, n::Int, units = noth
139139 kw...
140140 )
141141 f = Figure (;size)
142- ax = GLMakie . Axis (f[1 ,1 ]; xlabel, ylabel, title, aspect)
142+ ax = Makie . Axis (f[1 ,1 ]; xlabel, ylabel, title, aspect)
143143 plot_slice! (f, ax, m. pos, getfield (m, symbol), n, units; xaxis, yaxis, kw... )
144144 return f
145145end
@@ -154,9 +154,9 @@ function plot_mesh_heatmap(d, units = nothing;
154154 kw...
155155)
156156 f = Figure (; size)
157- a = GLMakie . Axis (f[1 , 1 ]; title, aspect)
158- ht = GLMakie . heatmap! (a, ustrip .(d); kw... )
159- GLMakie . Colorbar (f[1 , 2 ], ht)
157+ a = Makie . Axis (f[1 , 1 ]; title, aspect)
158+ ht = Makie . heatmap! (a, ustrip .(d); kw... )
159+ Makie . Colorbar (f[1 , 2 ], ht)
160160 return f
161161end
162162
@@ -173,8 +173,8 @@ function plot_mesh_heatmap(m::MeshCartesianStatic, symbol::Symbol, units = nothi
173173 y = ustrip .(getuLength (units), axis_cartesian (m. pos, :y ))
174174
175175 f = Figure (; size)
176- a = GLMakie . Axis (f[1 ,1 ]; title, aspect)
177- ht = GLMakie . heatmap! (a, x, y, ustrip .(getfield (m, symbol)); kw... )
178- GLMakie . Colorbar (f[1 ,2 ], ht)
176+ a = Makie . Axis (f[1 ,1 ]; title, aspect)
177+ ht = Makie . heatmap! (a, x, y, ustrip .(getfield (m, symbol)); kw... )
178+ Makie . Colorbar (f[1 ,2 ], ht)
179179 return f
180180end
0 commit comments