-
Notifications
You must be signed in to change notification settings - Fork 382
Correct column naming and width unit in ternary example #7135
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
Conversation
Also the example for Maybe correcting the test (see https://github.com/GenericMappingTools/gmt/blob/master/test/psternary/ternary.sh) makes also sense? (Please note the negative sign in |
Note that ternary.sh test produces the same output as the one shown in the Matlab central example. What seems to be lacking, ans a Yvonne noticed, is the |
Yes, without the minus sign in |
The Matlab fig in FEX does not show any labels at the triangle vertices so that can't be used for comparison, and the labels at the axes are shorter (Water instead of "Water component"). Otherwise it's equal to what is produced by the |
I agree with @yvonnefroehlich that after the renaming and changing So, to conclude what needs to be changed:
|
The second aspect is what I meant with "Please note the axis directions" and tried to highlight with the purple ellipses in #7135 (comment) 🙂.
Regarding the second point, I feel it makes sense to addionally change the unit from inches to centimeters as mention by @joa-quim in #7135 (comment). Hm. Probably adding a colorbar also to the examples in the docs (in the test there is already a colorbar) would make the figure better interpretable? |
OK, you are right that the axes have opposing senses in the GMT and FEX when -JX- is used. But we will hardly produce the exact same map with GMT and Matlab because in Matlab the variable 1 is on the left side of the triangle whilst in GMT it's on the base. In summary, I think it's correct to change the column naming but no need to change anything else (except the damn inches) |
I agree changing the test script only adds more bellyache with PS update. But go ahead and update the other things. |
Description of proposed changes
Based on #2227 this PR corrects the column naming in the ternary example.
Reminders