-
Notifications
You must be signed in to change notification settings - Fork 382
Potential issues or breaking changes with the GMT modern theme? #4955
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
Comments
|
I will look into the colorbar issue |
The colorbar issue is related to current.map.frame.draw in GMT being set to |
Reopening because #4957 only addressed #4955 (comment) and #4955 (comment) |
I am wondering if it is possible to use a gentler scaling for MAP_ANNOT_MIN_SPACING if a defined annotation spacing is given. For example, while the warnings are helpful for knowing the reason for the missing annotations, it seems a bit problematic to require setting MAP_ANNOT_MIN_SPACING for a command like this: |
Yes, probably. I think these examples show a few issues:
|
Adding this line to the non-oblique setups for WInkel, Robinson and thw two Eckerts:
gives nice plots. Will prep a PR soon but dinner with two actual guests (!) will interfere... |
All of the remaining issues are related to these new lines in
|
In addition to only having one western annotation, these figures show that fancy frames in 6.1.1 did not have tick marks by default, but do have tick marks after the themes branch was merged. I think the old default (no tick marks on fancy frames) should be maintained. What do you think, @PaulWessel? |
The tick marks were always there but drowned by that over-thick frame. So more of a mini-bug than feature in my mind. I think ticks should be shown as they are in modern. If anyone wants to maintain that "failure/feature" they can shrink their tick lengths to match the frame width. |
Thanks for the explanation. One more question regarding the maps from the last comment. Here is the example above if the auto-x and auto-y intervals are considered independently: |
I do not know - I think that was what Remko's old Fortran code did. Perhaps the joint/separate could be decided based on the differences in range? E.g r = (east-west)/{north-south); if (r < 0) r = 1.r; if (r > 2) do separate else joint? |
Yes, I agree. I will open a PR with that type of solution - just wanted to check whether there was a historical reason for the current implementation before making any changes. |
It turns out that adding something like this creates more problems than it solves. I simply reduced the first guess at the annotation interval in #4991 instead, which had been increased by 1.75 times in the themes branch. |
@seisman, I think these are all handled now. Please reopen or create a separate issue if you notice more. |
@PaulWessel, can you take a look at these examples to provide your opinion about whether the auto scaling for Example 1:
Example 2:
|
Just so I understand, the question here is if MAP_FRAME_PEN (which is used if there is no +ppen in -F) shall be
Is this what you are getting at? |
Yes, this is my question. It seems now it is shrunk down based on inset size. |
The inset may plot a basemap and it certainly should be controlled by a scaled-down MAP_FRAME_PEN. However, the default for +p is a different thing taht should not worry about scalings, so that default should probably be the original unscaled one of 1.5p of whatever. You can always override with +p. So this line in gmt_getpanel may need revision:
and instead be
I think you can go ahead and test that with a WIP PR. |
OK, I will work on this. |
Running this command:
GMT v6.1.1 doesn't plot any axes, only the title, but GMT master branch plots the 4 axes.
The changes are a big surprise to me and look like a bug.
The text was updated successfully, but these errors were encountered: