Closed
Description
Below is a simple PyGMT script, which used to work with 6.0.0rc1.
import pygmt
fig = pygmt.Figure()
fig.basemap(region="0/10/0/10", frame=True, projection="X10c")
fig.savefig("map.pdf")
The PyGMT script is equivalent to the following bash script:
gmt begin pygmt-session
gmt figure unique_name -
gmt basemap -R0/10/0/10 -Baf -JX10c
gmt psconvert -A -Fmap -Qg2 -Qt2 -Tf
gmt end
Running the bash script above gives following error message:
psconvert [ERROR]: Syntax error: Modern GMT mode requires the -F option
end [ERROR]: Failed to call psconvert
end [ERROR]: process_figures returned error 71
According to the comments in PyGMT codes, passing format -
to the figure module means "don't produce files for this figure when running gmt end". It seems it doesn't work correctly in 6.0.0rc4.
Metadata
Metadata
Assignees
Labels
No labels