How to save pdf file in PyGMT?

hi how to save the result with pdf file format in PyGMT?

Hi brioglade,
If your figure has been created with

fig = pygmt.Figure()

then save it to a pdf file with

fig.savefig('map.pdf')
1 Like

Hi labrosse,
Do you know how to use GMT.jl in Colab?
Julia_1_6_0.ipynb.txt (23.6 KB)

No, sorry, I can’t help you there. I do everything directly in python, not even using jupyter.

1 Like