Skip to content

More careful usage of "figure" vs. "map" / "plot"? #2437

Closed

Description

@yvonnefroehlich

Currently, "figure" and "map" / "plot" more or less used interchangeable. However, there can be a relevant difference, mostly in the context of setting the anchor point (position parameter). Further, "figure" also refers more to the figure object / instance created via pygmt.Figure().

First dicussed in #2395 (comment) by @michaelgrund:

In my opinion "figure" is not correct here, since the whole object is the figure, including the area outside the map frame where the colorbar is placed.

and #2395 (comment) by @yvonnefroehlich:

I see your point. My intention to change it was that the generated figure is no geographical map. Maybe "plot" would serve as a more general term? But I am not sure whether there is a clear differentiation between "plot" and "figure". Thus, I changed it back to "map" in commit 29a7bb7.

This is a bit related to issue #2026 and maybe can be included in the tutorial added by @JingHuiTong in PR #2383?

This impacts mainly on the docstrings as well as gallery examples and tutorials:

Activity

  1. added
    question
    documentation
    on Mar 17, 2023
  2. added this to the 0.9.0 milestone on Mar 17, 2023
  3. jhtong33 commented on Mar 20, 2023

    @jhtong33
    Contributor

    I try to describe this issue in PR #2383. Could you help the documentation (pygmt.Figure) more clear?

  4. modified the milestones: 0.9.0, 0.10.0 on Mar 24, 2023
  5. removed this from the 0.10.0 milestone on Aug 24, 2023
  6. added
    discussions
    and removed
    question
    on Aug 11, 2024
  7. seisman commented on Aug 11, 2024

    @seisman
    Member

    Looking at the Matplotlib tutorial, here is my understanding/preference:

    • plot: A general term which can describe Cartesian, geographic, polar, or 3D "plots".
    • map should be limited to a geographic plot.
    • figure refers to the pygmt.Figure object.
  8. added this to the 0.20.0 milestone on Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

discussionsdocumentation

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions