-
Notifications
You must be signed in to change notification settings - Fork 369
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
Colorbar annotations plotting incorrectly when used in an inset plot. #8690
Comments
👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. We appreciate that you took the time to contribute! Please make sure you read our Contributing Guide and abide by our Code of Conduct. |
Can you make this into a small example, just one or two lines? |
This script still produces the same error message which only appears once Script:
|
Thanks. I edited your post to remove the error message, that are no error at all. They are debug messages and being quite long make this unnecessarily long. Also adding the find by @mkononets https://forum.generic-mapping-tools.org/t/colorbar-annotation-placements/5732/2 that repeating the -R -J works around this issue
which makes this issue ... almost solved (we are really short on manpower to address less priority issues) |
Description of the problem
The tick marks are not aligning to the correct place on the color scale and thus there is some text that is well off the scale. You will see that I have plotted three insets below the main figure. The colorbar is part of the middle inset, yet the 2000 annotation plots near the right inset. Based on the cpt which i set to go from 5000 to 2000, the 1000’s should be placed on the actual bar. A solution does exist to fix the problem, but I believe that this is still a bug.
Full script that generated the error
Actual outcome
Gofar625_79_inset_TEST.pdf
Expected outcome
The annotations on the bottom of the colorbar attached to the middle inset do not plot in the correct locations. A solution does exist to fix this bug: add your -R and -J parameters into the
colorbar
function.System information
gmt --version
): 6.5.0The text was updated successfully, but these errors were encountered: