From 94cef70a1008ed9b5f064f79288c6ead2951a7b2 Mon Sep 17 00:00:00 2001 From: Joaquim Date: Mon, 28 Oct 2024 19:44:35 +0000 Subject: [PATCH] Insure that colorbar always has a -Ba when -B was not set. --- src/psscale.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/psscale.jl b/src/psscale.jl index c24f6798d..3ff2b4099 100644 --- a/src/psscale.jl +++ b/src/psscale.jl @@ -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]])