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

Explain the naming of figure elements in a PyGMT figure #2026

Closed
seisman opened this issue Jul 25, 2022 · 0 comments · Fixed by #2383
Closed

Explain the naming of figure elements in a PyGMT figure #2026

seisman opened this issue Jul 25, 2022 · 0 comments · Fixed by #2383
Labels
documentation Improvements or additions to documentation

Comments

@seisman
Copy link
Member

seisman commented Jul 25, 2022

The figure below explains the anatomy of a matplotlib figure.
image

As you can see, the naming of figure elements is different between matplotlib and PyGMT.

  1. tick labels in matplotlib are called annotations in PyGMT
  2. axes in matplotlib is a region for plotting data. I don't think there is an equivalent in PyGMT
  3. axis (e.g., x-axis and y-axis)in matplotlib is called axes in PyGMT, and is specified by WSENwsen.
  4. spines in matplotlib are lines connecting the axis tick marks and noting the boundaries of the data area. In GMT/PyGMT, they're plotted by specifying l, r, t, or b.

These differences may confuse users coming from matplotlib. I think it would be good if we can create a similar figure and short tutorial, explaining the naming of figure elements in GMT/PyGMT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant