Skip to content

Commit dd8bbaa

Browse files
authored
Merge pull request #105 from WIAS-PDELib/fix/docs-legend
Minor doc fixes in `default_plot_kwargs`
2 parents 58b57e0 + 4477098 commit dd8bbaa

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repos:
1212
- id: no-commit-to-branch
1313
args: [--branch, main]
1414
- repo: https://github.com/gitleaks/gitleaks
15-
rev: v8.29.0
15+
rev: v8.30.0
1616
hooks:
1717
- id: gitleaks
1818
- repo: https://github.com/fredrikekre/runic-pre-commit

src/dispatch.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ function default_plot_kwargs()
348348
:levels => Pair(7, "array of isolevels or number of isolevels for contour plots"),
349349
:legend => Pair(
350350
:none,
351-
"Legend (position): one of [:none, :best, :lt, :ct, :rt, :lc, :rc, :lb, :cb, :rb]"
351+
"Legend (position): one of [:none, :best, :cc, :lt, :ct, :rt, :lc, :rc, :lb, :cb, :rb]"
352352
),
353353
:limits => Pair((1, -1), "function limits"),
354354
:linestyle => Pair(
@@ -413,7 +413,9 @@ end
413413
function _myprint(dict)
414414
lines_out = IOBuffer()
415415
for (k, v) in dict
416-
println(lines_out, " - `$(k)`: $(v[2]). Default: `$(v[1])`\n")
416+
# add ":" to symbols
417+
default_value = "`$(typeof(v[1]) == Symbol ? ":" : "")$(v[1])`"
418+
println(lines_out, " - `$(k)`: $(v[2]). Default: $(default_value)\n")
417419
end
418420
return String(take!(lines_out))
419421
end

0 commit comments

Comments
 (0)