Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local gmt.conf file not being used? #828

Closed
adigitoleo opened this issue Feb 7, 2022 · 1 comment
Closed

Local gmt.conf file not being used? #828

adigitoleo opened this issue Feb 7, 2022 · 1 comment

Comments

@adigitoleo
Copy link

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.

@joa-quim
Copy link
Member

joa-quim commented Oct 5, 2023

Yes, it was not. Made some changes and now it never is by design (to not interfere with next plot in day after) but gmtset() now immediately applies the setting directly to the API.

@joa-quim joa-quim closed this as completed Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants