-
Notifications
You must be signed in to change notification settings - Fork 364
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
Let inset begin accept -R and -J to automatically set width or height #5875
Comments
This is not a bug (it is a feature): The user is specifying a 2cx2c inset and requests a Mercator plot for some region. The dimension of that map is
so -JM? finds that it needs to use a width of 2 * (2/2.20926717722) to fit inside the box. Now, I understand this is inconvenient and perhaps we can improve this, but the solution would be to ask for +w2c/2.20926717722c: I guess one possible way to deal with this is to specify +w2c/0 and let GMT compute what height needs to be based on the -R -J but that is not yet known when gmt inset begin starts. Will need to think about this a bit. Feel free to turn this "lesson" into a feature request, for instance. |
Could |
Yes, possibly. Please make a feature request and include that suggestion.
On October 18, 2021 at 1:41:42 PM, Meghan Jones ***@***.***) wrote:
Could inset begin accept *-J* and *-R* similar to subplot begin in order to
make this easier for the user?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5875 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGJ7IX6B3LDVKRLHFZNKBHTUHSWDNANCNFSM5GHUH7DA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
OK, I have adjusted this issue to be a feature request rather than a bug report and detailed the suggested feature in the main post. |
See #5875 for background. This PR implements that suggestion and adds a new test inset2.sh to demonstrate it.
OK, to close this issue, @meghanrjones ? |
Description of the desired feature
Currently, the user must use mapproject to determine the appropriate size for a inset to match a given region and projection. It would be useful to allow
inset begin
to accept the region and projection of the inset, similar to subplot begin, to avoid this extra step. Here is an example of the anticipated usage:Are you willing to help implement and maintain this feature? Yes
The text was updated successfully, but these errors were encountered: