Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
- id: no-commit-to-branch
args: [--branch, main]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.29.0
rev: v8.30.0
hooks:
- id: gitleaks
- repo: https://github.com/fredrikekre/runic-pre-commit
Expand Down
6 changes: 4 additions & 2 deletions src/dispatch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ function default_plot_kwargs()
:levels => Pair(7, "array of isolevels or number of isolevels for contour plots"),
:legend => Pair(
:none,
"Legend (position): one of [:none, :best, :lt, :ct, :rt, :lc, :rc, :lb, :cb, :rb]"
"Legend (position): one of [:none, :best, :cc, :lt, :ct, :rt, :lc, :rc, :lb, :cb, :rb]"
),
:limits => Pair((1, -1), "function limits"),
:linestyle => Pair(
Expand Down Expand Up @@ -413,7 +413,9 @@ end
function _myprint(dict)
lines_out = IOBuffer()
for (k, v) in dict
println(lines_out, " - `$(k)`: $(v[2]). Default: `$(v[1])`\n")
# add ":" to symbols
default_value = "`$(typeof(v[1]) == Symbol ? ":" : "")$(v[1])`"
println(lines_out, " - `$(k)`: $(v[2]). Default: $(default_value)\n")
end
return String(take!(lines_out))
end
Expand Down
Loading