-
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
Symbols are sized in unit inches instead of centimetres when using -i #4386
Comments
Can confirm this problem. This works:
but this does not:
|
BTW, the same is true for plot:
So these cases happen when -i is used to recycle a map coordinate as a plot dimension. To be specific, you may in fact be saying that a latitude of 1 degree North shall also be duplicated into the z-column but now we want that "1" to mean 1c or 1i. I am not sure if this is good style or reasoning. A 1 degree north latitude should not become the same as 1 cm symbol size. Thus I question whether this should be considered a bug. |
Well, I'm more interested in the 3D xyz Cartesian sense. The 'bug' is that there is a hardcoded 'inches' setting somewhere, and that trying to set the scaling to 'cm' units doesn't work. |
Sure, but your Cartesian z is the same, e.g., it could be number of people in Ohio or the weight of typical hamburgers, i.e., there is a unit associated with these things, even if not spelled out. Taking that weight of 0.43 pounds of hamburger and saying that it is now 0.43 cm for symbol size is the problem. However, if you decide to say "Lets scale those 0.43 pounds by a multiplier of one and now use it as a dimension" then it works:
|
Yes, the
Oh, and to be honest, this is a fairly minor bug. Just thought I'd report this inconsistency. |
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
Description of the problem
There appears to be a bug (or feature?) when using
i="0,1,2,2"
with-Suc
, as it doesn't change the unit to centimetres, but keeps on using inches as the default unit. The documentation at https://docs.generic-mapping-tools.org/latest/plot3d.html#s confuses me, especially with the mention ofPROJ_LENGTH_UNIT
.Originally posted by @weiji14 in GenericMappingTools/pygmt#471 (comment)
Full script that generated the error
Data file from https://github.com/GenericMappingTools/pygmt/blob/v0.2.0/pygmt/tests/data/points.txt
Full error message
Actual outcome
Cubes sized in inches are produced instead of in centimetres
Expected outcome
Cubes sized in centimetres (note smaller, as 1 inch = ~2.5 cm)
System information
gmt --version
): 6.1.1The text was updated successfully, but these errors were encountered: