You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ((val =find_in_dict(d, [:J:proj:projection], del)[1]) !==nothing)
@@ -530,17 +531,17 @@ function parse_J(d::Dict, cmd::String; default::String="", map::Bool=true, O::Bo
530
531
else# For when a new size is entered in a middle of a script
531
532
if ((s =helper_append_figsize(d, opt_J, O, del)) !="")
532
533
if (opt_J ==" -J")
533
-
(CTRL.pocket_J[1] != s)&&# Composed funs (ex: fill_between) would trigger this warning
534
+
if(CTRL.pocket_J[1] != s) # Composed funs (ex: fill_between) would trigger this warning
534
535
println("SEVERE WARNING: When appending a new fig with a different size you SHOULD set the `projection`. \n\tAdding `projection=:linear` at your own risk.");
535
-
opt_J *="X"* s[4:end]::String
536
+
opt_J *="X"* s[4:end]::String
537
+
else
538
+
opt_J *= (O ?"":"X") * s[4:end]::String# When overlaying use current projection, otherwise use linear
539
+
end
536
540
else
537
541
opt_J = s
538
542
end
539
543
end
540
544
end
541
-
#if (CTRL.proj_linear[1]) # If CTRL.proj_linear[1] == false, trust it
@test_throwsErrorException("When projection arguments are in a NamedTuple the projection 'name' keyword is madatory.") GMT.parse_J(Dict{Symbol,Any}(:J=> (parallels=[4565],)), "", default="", map=false)
74
74
@test_throwsErrorException("When projection is a named tuple you need to specify also 'center' and|or 'parallels'") GMT.parse_J(Dict{Symbol,Any}(:J=> (name=:merc,)), "", default="", map=false)
0 commit comments