Hi, I’m new to PyGMT. I’m trying to run these two lines:
import pygmt
from pygmt.params import Axis, Frame
but I get the warning:
ImportError: cannot import name 'Axis' from 'pygmt.params' (C:\Users\jerom\anaconda3\envs\pygmt\Lib\site-packages\pygmt\params\__init__.py)
Under pygmt.params, there are only these modules: "[‘Box’,‘Pattern’, ‘Position’, ‘_builtins_’, ‘_cached_’, ‘_doc_’, ‘_file_’, ‘_loader_’, ‘_name_’, ‘_package_’, ‘_path_’, ‘_spec_’, ‘base’, ‘box’, ‘pattern’, ‘position’].
I just upgraded PyGMT to the version 0.18.0 (I ran the quickstart script from the PyGMT website).
I don’t know what to do next. Thanks so much for your help.
welcome to the GMT forum and great you want to use PyGMT in your work.
As already mentioned by @seismanAxisand Frame were added later and are currently only available in the dev version. I believe you looked at the tutorial “1. Making your first figure”. You can find the version for PyGMT v0.18.0 at 1. Making your first figure — PyGMT.