# Cannot import name 'Axis' from 'pygmt.params'

**URL:** <https://forum.generic-mapping-tools.org/t/cannot-import-name-axis-from-pygmt-params/6443>\
**Category:** PyGMT Q&A\
**Created:** [June 9, 2026, 3:07am UTC](https://forum.generic-mapping-tools.org/t/cannot-import-name-axis-from-pygmt-params/6443 "2026-06-09T03:07:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeromechine](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/jeromechine/32/5266_2.png) [@jeromechine](https://forum.generic-mapping-tools.org/u/jeromechine)\
**Post date:** [June 9, 2026, 3:07am UTC](https://forum.generic-mapping-tools.org/t/cannot-import-name-axis-from-pygmt-params/6443/1 "2026-06-09T03:07:54Z")

</div>

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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![mkononets](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/mkononets/32/4029_2.png) [@mkononets](https://forum.generic-mapping-tools.org/u/mkononets)\
**Post date:** [June 9, 2026, 9:07am UTC](https://forum.generic-mapping-tools.org/t/cannot-import-name-axis-from-pygmt-params/6443/2 "2026-06-09T09:07:52Z")

</div>

> [@jeromechine](#):
>
> Under pygmt.params, there are only these modules: "[‘Box’,‘Pattern’, ‘Position’, ‘\ __builtins_\_’, ‘\__ cached_\_’, ‘\ __doc_\_’, ‘\__ file_\_’, ‘\ __loader_\_’, ‘\__ name_\_’, ‘\ __package_\_’, ‘\__ path_\_’, ‘\__spec_\_’, ‘base’, ‘box’, ‘pattern’, ‘position’]

Well this is exactly the answer: There’s no `Axis`.  
(there is no `Frame` either)

---

<div class="post-metadata">

**Author:** ![seisman](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/seisman/32/4_2.png) [@seisman](https://forum.generic-mapping-tools.org/u/seisman)\
**Post date:** [June 11, 2026, 4:26am UTC](https://forum.generic-mapping-tools.org/t/cannot-import-name-axis-from-pygmt-params/6443/3 "2026-06-11T04:26:35Z")

</div>

> [@jeromechine](#):
>
> `ImportError: cannot import name 'Axis' from 'pygmt.params' (C:\Users\jerom\anaconda3\envs\pygmt\Lib\site-packages\pygmt\params\ __init__.py)`

`Axis`/`Frame` are new features recently added but have not been released yet. To use them, you need to install the dev version instead.

---

<div class="post-metadata">

**Author:** ![yvonnefroehlich](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/yvonnefroehlich/32/5064_2.png) [@yvonnefroehlich](https://forum.generic-mapping-tools.org/u/yvonnefroehlich)\
**Post date:** [June 17, 2026, 6:20pm UTC](https://forum.generic-mapping-tools.org/t/cannot-import-name-axis-from-pygmt-params/6443/4 "2026-06-17T18:20:02Z")

</div>

> [@jeromechine](#):
>
> 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.

Hey @jeromechine,

welcome to the GMT forum and great you want to use PyGMT in your work.

As already mentioned by @seisman `Axis`and `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](https://www.pygmt.org/v0.18.0/intro/01_first_figure.html).

---

<div class="post-metadata">

**Author:** ![yvonnefroehlich](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/yvonnefroehlich/32/5064_2.png) [@yvonnefroehlich](https://forum.generic-mapping-tools.org/u/yvonnefroehlich)\
**Post date:** [July 20, 2026, 10:43pm UTC](https://forum.generic-mapping-tools.org/t/cannot-import-name-axis-from-pygmt-params/6443/5 "2026-07-20T22:43:35Z")

</div>

@jeromechine just want to let you know PyGMT v0.19.0 was released a few days ago (xref: [PyGMT v0.19.0 released](https://forum.generic-mapping-tools.org/t/pygmt-v0-19-0-released/6464)). So, after upgrading to PyGMT v0.19.0, you should be able to import the `Axis` and `Frame` parameter classes.
