Skip to content

Commit af9992d

Browse files
authored
Merge pull request #99 from WIAS-PDELib/fix/1dlegend
Fix 1D legend entries in `gridplot`
2 parents 2377ad8 + 91d63ed commit af9992d

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v5.0.0
3+
rev: v6.0.0
44
hooks:
55
- id: check-added-large-files
66
args: [--maxkb=8192]
@@ -12,11 +12,11 @@ repos:
1212
- id: no-commit-to-branch
1313
args: [--branch, main]
1414
- repo: https://github.com/gitleaks/gitleaks
15-
rev: v8.24.2
15+
rev: v8.29.0
1616
hooks:
1717
- id: gitleaks
1818
- repo: https://github.com/fredrikekre/runic-pre-commit
19-
rev: v1.0.0
19+
rev: v2.0.1
2020
hooks:
2121
- id: runic
2222
- repo: https://github.com/codespell-project/codespell

ext/GridVisualizeMakieExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ function gridplot!(ctx, TP::Type{MakieType}, ::Type{Val{1}}, grid)
327327
map(g -> bregionmesh1d(g, gridscale, i), ctx[:grid]);
328328
color = bcmap[i],
329329
linewidth = 4,
330-
label = "b$(i)",
330+
label = "b $(i)",
331331
)
332332
end
333333

ext/GridVisualizePlutoVistaExt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function gridplot!(ctx, TP::Type{PlutoVistaType}, ::Type{Val{1}}, grid)
152152

153153
for icell in 1:num_cells(grid)
154154
ireg = cellregions[icell]
155-
label = crflag[ireg] ? "c$(ireg)" : ""
155+
label = crflag[ireg] ? "c $(ireg)" : ""
156156
crflag[ireg] = false
157157

158158
x1 = coord[1, cellnodes[1, icell]]
@@ -189,7 +189,7 @@ function gridplot!(ctx, TP::Type{PlutoVistaType}, ::Type{Val{1}}, grid)
189189
for ibface in 1:num_bfaces(grid)
190190
ireg = bfaceregions[ibface]
191191
if ireg > 0
192-
label = brflag[ireg] ? "b$(ireg)" : ""
192+
label = brflag[ireg] ? "b $(ireg)" : ""
193193
brflag[ireg] = false
194194
x1 = coord[1, bfacenodes[1, ibface]]
195195
PlutoVista.plot!(

ext/GridVisualizePyPlotExt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function gridplot!(ctx, TP::Type{PyPlotType}, ::Type{Val{1}}, grid)
168168

169169
for icell in 1:num_cells(grid)
170170
ireg = cellregions[icell]
171-
label = crflag[ireg] ? "c$(ireg)" : ""
171+
label = crflag[ireg] ? "c $(ireg)" : ""
172172
crflag[ireg] = false
173173

174174
x1 = coord[1, cellnodes[1, icell]] * gridscale
@@ -188,7 +188,7 @@ function gridplot!(ctx, TP::Type{PyPlotType}, ::Type{Val{1}}, grid)
188188
for ibface in 1:num_bfaces(grid)
189189
ireg = bfaceregions[ibface]
190190
if ireg > 0
191-
label = brflag[ireg] ? "b$(ireg)" : ""
191+
label = brflag[ireg] ? "b $(ireg)" : ""
192192
brflag[ireg] = false
193193
x1 = coord[1, bfacenodes[1, ibface]] * ctx[:gridscale]
194194
ax.plot(

0 commit comments

Comments
 (0)