@@ -3071,17 +3071,17 @@ function axis(D::Dict{Symbol,Any}, x::Bool, y::Bool, z::Bool, secondary::Bool, d
30713071
30723072 # intervals
30733073 ints:: String , ann_2, ann_3, tic_2, tic_3, gri_2, gri_3, gri_d = " " , " " , " " , " " , " " , " " , " " , " "
3074- if (haskey (d, :annot )) ints *= " a" * helper1_axes (d[ :annot ] , is3D, ' a' ) end
3074+ if (haskey (d, :annot )) ints *= " a" * helper1_axes (d, :annot , is3D, ' a' ) end
30753075 contains (ints, ' ' ) && (spli = split (ints); ints = string (spli[1 ]); ann_2 = string (spli[2 ]); ann_3 = string (spli[3 ]))
30763076 (haskey (d, :annot_unit )) && (ints *= helper2_axes (d[:annot_unit ]))
30773077
3078- if (haskey (d, :ticks )) ints *= " f" * helper1_axes (d[ :ticks ] , is3D, ' f' ) end
3078+ if (haskey (d, :ticks )) ints *= " f" * helper1_axes (d, :ticks , is3D, ' f' ) end
30793079 contains (ints, ' ' ) && (spli = split (ints); ints = string (spli[1 ]); tic_2 = string (spli[2 ]); tic_3 = string (spli[3 ]))
30803080 (haskey (d, :ticks_unit )) && (ints *= helper2_axes (d[:ticks_unit ]))
30813081
30823082 if (haskey (d, :grid ))
30833083 if (isa (d[:grid ], NamedTuple)) gri_d = parse_grid (D, d[:grid ], opt_B= " " , stalone= false ) # Whatever comes out
3084- else gri_d = " g" * helper1_axes (d[ :grid ] , is3D, ' g' )
3084+ else gri_d = " g" * helper1_axes (d, :grid , is3D, ' g' )
30853085 end
30863086 contains (gri_d, ' ' ) && (spli = split (gri_d); gri_d = string (spli[1 ]); gri_2 = string (spli[2 ]); gri_3 = string (spli[3 ]))
30873087 ints *= gri_d; CTRL. pocket_B[1 ] = gri_d # If gri_d has a space in it I guess some shit will happen later
@@ -3158,7 +3158,7 @@ function axis(D::Dict{Symbol,Any}, x::Bool, y::Bool, z::Bool, secondary::Bool, d
31583158 return opt, [have_Baxes, (opt_Bframe != " " )]
31593159end
31603160
3161- function axis (opt:: String , D:: Dict ; x:: Bool = false , y:: Bool = false , z:: Bool = false , secondary:: Bool = false ):: Tuple{String, Vector{Bool}}
3161+ function axis (opt:: String , D:: Dict{Symbol,Any} ; x:: Bool = false , y:: Bool = false , z:: Bool = false , secondary:: Bool = false ):: Tuple{String, Vector{Bool}}
31623162 # Method for axes setting already passed as a string
31633163 (x && opt[1 ] != ' x' ) && (opt = " x" * opt)
31643164 (y && opt[1 ] != ' y' ) && (opt = " y" * opt)
@@ -3194,15 +3194,15 @@ function helper0_axes(arg)::String
31943194end
31953195
31963196# ------------------------
3197- function helper1_axes (arg , is3D:: Bool , c:: Char ):: String
3197+ function helper1_axes (d :: Dict{Symbol, Any} , symb :: Symbol , is3D:: Bool , c:: Char ):: String
31983198 # Used by annot, ticks and grid to accept also 'auto' and "" to mean automatic
3199- out:: String = arg2str (arg )
3199+ out:: String = arg2str (d[symb] )
32003200 (out != " " && out[1 ] == ' a' ) && return " "
3201- if ((is3D || isa (arg , Tuple)) && ((nc = count_chars (out, ' /' )) > 0 ))
3202- nc == 1 && return @sprintf (" %.12g %s%.12g %s%.12g" , arg[ 1 ], c, arg[ 1 ], c, arg [2 ]):: String
3203- nc == 2 && return @sprintf (" %.12g %s%.12g %s%.12g" , arg[ 1 ], c, arg[ 2 ], c, arg [3 ]):: String
3201+ if ((is3D || isa (d[symb] , Tuple)) && ((nc = count_chars (out, ' /' )) > 0 ))
3202+ nc == 1 && return @sprintf (" %.12g %s%.12g %s%.12g" , d[symb][ 1 ], c, d[symb][ 1 ], c, d[symb] [2 ]):: String
3203+ nc == 2 && return @sprintf (" %.12g %s%.12g %s%.12g" , d[symb][ 1 ], c, d[symb][ 2 ], c, d[symb] [3 ]):: String
32043204 end
3205- (out != " " && isletter (out[1 ]) && out[1 ] != ' p' ) && # "pi" is allowed
3205+ (out != " " && isletter (out[1 ]) && out[1 ] != ' p' ) && # "pi" is allowed
32063206 (@warn (" Probable misuse of the 'grid' sub-otpion. Defaulting to a valid value." ); out = " " )
32073207 return out
32083208end
@@ -4891,7 +4891,7 @@ macro var"?"(name)
48914891 dir = " modules/"
48924892 if sym in [:ablines ,:append2fig ,:bezier ,:blendimg ,:cart2pol ,:cart2sph ,:circfit ,:colorzones ,:cpt4dcw ,:crop ,
48934893 :cubeplot ,:coastlinesproj ,
4894- :cubeslice ,:date2doy ,:delrows! ,:doy2date ,:ecmwf ,:era5time ,era5vars,:gadm ,:geocoder ,:geodetic2enu ,
4894+ :cubeslice ,:date2doy ,:delrows ,:doy2date ,:ecmwf ,:era5time ,era5vars,:gadm ,:geocoder ,:geodetic2enu ,
48954895 :getbyattrib ,:getprovider ,:gmtread ,:gmtwrite , :graticules ,:gridit ,:gunique ,hampel,:imagesc ,:inwhichpolygon ,
48964896 :image_alpha! , :image_cpt! ,:imshow ,:ind2rgb , :info ,:isnodata ,:isoutlier ,:lazinfo ,:lazread ,:lazwrite ,:lasread ,
48974897 :laswrite ,:lelandshade ,:linearfitxy ,:listecmwfvars ,
0 commit comments