Bug #583
using -B and -L options in psscale
Status: | Closed | Start date: | 2014-06-26 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 100% | ||
Category: | - | |||
Target version: | Candidate for next bugfix release | |||
Affected version: | 5.1.1 | Platform: |
Description
I am trying to get equal-sized color rectangles with -L option and and the same time
add general annotation (like "Magnetic field") to the color scale. However nothing
is plotted if -L and -B are used at the same time.
It did work before in 4x, but does not work now in GMT 5.1.1
Apparently -B does not give the same behavior as -L - it gives annotation based on values,
not on colors, and is not working for non-linear color scales.
Test script is attached
Note that cpt file is not linear.
History
#1
Updated by Paul over 6 years ago
- Tracker changed from Feature to Bug
- Status changed from New to Resolved
- Assignee set to Paul
- Target version set to Candidate for next bugfix release
- Affected version set to 5.1.1
Because of under-the-hood changes to the -B machinery, the test in GMT 4 that disallows -L and -B (if -B tries to set intervals) did not translate cleanly and thus triggered even though just axis labels were specified. I changed that to only object if intervals were specified, so now seems to work as in GMT4. Please try; in r13299.
#2
Updated by Mikhail over 6 years ago
Hi Paul,
I've just tried it; works excellent, just as I wanted.
Thank you very much for such a quick resolution of this issue.
Cheers,
Mikhail
#3
Updated by Paul over 6 years ago
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
Closing this issue as fixed.