You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
More careful usage of "figure" vs. "map" / "plot"? #2437
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().
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.
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
jhtong33 commentedon Mar 20, 2023
I try to describe this issue in PR #2383. Could you help the documentation (pygmt.Figure) more clear?
seisman commentedon Aug 11, 2024
Looking at the Matplotlib tutorial, here is my understanding/preference:
plot: A general term which can describe Cartesian, geographic, polar, or 3D "plots".mapshould be limited to a geographic plot.figurerefers to thepygmt.Figureobject.