-
Notifications
You must be signed in to change notification settings - Fork 361
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
plot/plot3d: Simplify the documentation for the -A option #8645
Comments
Yes, it will look better that way. |
I'm updating the documentation of this option on the PyGMT side first, then @yvonnefroehlich found an issue at GenericMappingTools/pygmt#3720 (comment), which I think is a GMT bug. Here is the CLI version just in case you want to try it:
Here are the related codes: Lines 1607 to 1653 in b877d72
For the @joa-quim @Esteban82 Could you please verify if it's indeed a bug, since the codes have been here for more than ten years and nobody complains about it. |
Yes @seisman, it is a bug. |
Indeed, it's a bug. |
Test Here is the comparison between the baseline image and the new image.
The green circles are the input data, and the first point is at (-5, 74). When In the image generated by the current master branch, the geographic one (upper panel) looks correct, but the Cartesian one (lower panel) is still wrong. Am I understanding it correctly? |
Hmm, aren't you swapping what's wrong/right? With master (confirmed with a local run). "Generated" geog is right. "BLUE LINE: -Am mode" is right on master but not on Baseline. The inverse ... hold on ... Lower panels show different behavior. The wither, at the top, are wrong but the narrower at the the bottom are correct. |
The "Baseline" one on the left is the current After #8648, we get the "Generated" one on the right, in which the "geographic" one is correct but the Cartesian one is wrong. With PR #8667, we will get the following image, which is correct for both "geographic" and "Cartesian" |
I find the Cartesian example too complicate for me to understand what is right or wrong. |
https://docs.generic-mapping-tools.org/latest/plot.html#a
The
-A
option has the following syntax:in which
m|p
works for geographic map,x|y
works for Cartensian plot, andr|t
works for polar projections.But in the source code,
m
/y
/r
works the same way, andp
/x
/t
works the same way.gmt/src/psxy.c
Lines 838 to 848 in b34b125
So, instead of showing the
-A[m|p|x|y|r|t]
, we can simplify it to:then the documentation can be something like:
I'd like to work on it if approved.
The text was updated successfully, but these errors were encountered: