GMT.jl icon indicating copy to clipboard operation
GMT.jl copied to clipboard

Local gmt.conf file not being used?

Open adigitoleo opened this issue 3 years ago • 0 comments

It seems like the gmt.conf file in the local directory is not being used. The commands below all plot a figure with the same title font for me:

julia> gmtset(FONT_TITLE = "2p,Helvetica,black")

julia> coast(region = (110, 210, -35, 45), proj = :Mercator, frame = :auto, land = :dimgray, title = "Test title font customization")

julia> showfig()

shell> grep 'FONT_TITLE' gmt.conf
FONT_TITLE                     = 2p,Helvetica,black

julia> coast(region = (110, 210, -35, 45), proj = :Mercator, frame = :auto, land = :dimgray, title = "Test title font customization")

julia> showfig()

julia> gmtset(FONT_TITLE = "50p,Helvetica,black")

julia> coast(region = (110, 210, -35, 45), proj = :Mercator, frame = :auto, land = :dimgray, title = "Test title font customization")

julia> showfig()

shell> grep 'FONT_TITLE' gmt.conf
FONT_TITLE                     = 50p,Helvetica,black

The gmtset commands are working, because the file is being created/modified. However, the settings are not being used. I tried changing the global gmt.conf and it seems to work, so I think it's just using that one always.

adigitoleo avatar Feb 07 '22 05:02 adigitoleo