Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insure that colorbar always has a -Ba when -B was not set. #1572

Merged
merged 1 commit into from
Oct 28, 2024
Merged
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
5 changes: 4 additions & 1 deletion src/psscale.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ function colorbar(arg1::Union{Nothing, GMTcpt}=nothing; first=true, kwargs...)
parse_paper(d) # See if user asked to temporarily pass into paper mode coordinates

cmd = parse_BJR(d, "", "", O, "")[1]
cmd = parse_JZ(d, cmd)[1]
if (!contains(cmd, " -B") && !IamModern[1])
cmd *= DEF_FIG_AXES[1]
end
cmd = parse_JZ(d, cmd; O=O, is3D=(CTRL.pocket_J[3] != ""))[1] # We can't use parse_J(d)[1]
cmd = parse_common_opts(d, cmd, [:F :UVXY :params :c :p :t]; first=first)[1]
cmd = parse_these_opts(cmd, d, [[:G :truncate], [:I :shade], [:M :monochrome], [:N :dpi],
[:Q :log], [:S :appearance :nolines], [:W :scale], [:Z :zfile]])
Expand Down
Loading