@@ -1321,25 +1321,25 @@ function consolidate_Baxes(opt_B::String)::String
13211321end
13221322
13231323# ---------------------------------------------------------------------------------------------------
1324- title (; str:: AbstractString = " " , font= nothing , offset= 0 ) = titles_e_comp (str, font, offset)
1325- subtitle (; str:: AbstractString = " " , font= nothing , offset= 0 ) = titles_e_comp (str, font, offset, " s" )
1326- xlabel (; str:: AbstractString = " " , font= nothing , offset= 0 ) = titles_e_comp (str, font, offset, " x" )
1327- ylabel (; str:: AbstractString = " " , font= nothing , offset= 0 ) = titles_e_comp (str, font, offset, " y" )
1328- zlabel (; str:: AbstractString = " " , font= nothing , offset= 0 ) = titles_e_comp (str, font, offset, " z" )
1329- function titles_e_comp (str:: AbstractString , fnt, offset, tipo:: String = " " ):: Tuple{String, String}
1330- f:: String = (fnt != = nothing ) ? font (fnt) : " "
1324+ title (; str:: AbstractString = " " , font= " " , offset= 0 ) = titles_e_comp (str, font, offset, " " )
1325+ subtitle (; str:: AbstractString = " " , font= " " , offset= 0 ) = titles_e_comp (str, font, offset, " s" )
1326+ xlabel (; str:: AbstractString = " " , font= " " , offset= 0 ) = titles_e_comp (str, font, offset, " x" )
1327+ ylabel (; str:: AbstractString = " " , font= " " , offset= 0 ) = titles_e_comp (str, font, offset, " y" )
1328+ zlabel (; str:: AbstractString = " " , font= " " , offset= 0 ) = titles_e_comp (str, font, offset, " z" )
1329+ function titles_e_comp (str:: AbstractString , fnt, offset, tipo:: String ):: Tuple{String, String}
1330+ f:: String = (fnt != = " " ) ? font (fnt) : " "
13311331 o:: String = (offset != 0 ) ? string (offset) : " "
1332- (str == " " ) && return str, " "
1333- if (tipo == " " )
1334- r2 = (f != " " ) ? " --FONT_TITLE=" * f : " "
1335- (o != " " ) && (r2 *= " --MAP_TITLE_OFFSET=" * o)
1332+ (str === " " ) && return str, " "
1333+ if (tipo === " " )
1334+ r2 = (f != = " " ) ? " --FONT_TITLE=" * f : " "
1335+ (o != = " " ) && (r2 *= " --MAP_TITLE_OFFSET=" * o)
13361336 elseif (tipo == " s" )
1337- r2 = (f != " " ) ? " --FONT_SUBTITLE=" * f : " "
1337+ r2 = (f != = " " ) ? " --FONT_SUBTITLE=" * f : " "
13381338 else
1339- r2 = (f != " " ) ? " --FONT_LABEL=" * f : " "
1340- (o != " " ) && (r2 *= " --MAP_LABEL_OFFSET=" * o)
1339+ r2 = (f != = " " ) ? " --FONT_LABEL=" * f : " "
1340+ (o != = " " ) && (r2 *= " --MAP_LABEL_OFFSET=" * o)
13411341 end
1342- replace (str_with_blancs (str), ' ' => ' \x 7f' ), r2
1342+ return replace (str_with_blancs (str), ' ' => ' \x 7f' ), r2
13431343end
13441344
13451345# ---------------------------------------------------------------------------------------------------
@@ -4162,7 +4162,7 @@ Finish the PostScript file and convert&display the figure.
41624162- `figname`: To create a figure in local directory and with a name `figname`. If `figname` has an extension,
41634163 that is used to select the fig format. *e.g.* `figname=fig.pdf` creates a PDF file localy called 'fig.pdf'
41644164"""
4165- function showfig (d:: Dict , fname_ps:: String , fname_ext:: String , opt_T:: String , K:: Bool = false , fname:: String = " " )
4165+ function showfig (d:: Dict{Symbol, Any} , fname_ps:: String , fname_ext:: String , opt_T:: String , K:: Bool = false , fname:: String = " " )
41664166 # Take a PS file, convert it with psconvert (unless opt_T == "" meaning file is PS)
41674167 # and display it in default system viewer
41684168 # FNAME_EXT holds the extension when not PS
0 commit comments