Bug #583

using -B and -L options in psscale

Added by Mikhail about 7 years ago. Updated about 7 years ago.

Status:ClosedStart date:2014-06-26
Priority:NormalDue date:
Assignee:Paul% Done:


Target version:Candidate for next bugfix release
Affected version:5.1.1 Platform:


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.

my.cpt - CPT file to be used (602 Bytes) Mikhail, 2014-06-26 19:09

psscale_test.sh Magnifier - script to create 3 ps files (560 Bytes) Mikhail, 2014-06-26 19:09

ps1.png - first (converted to PNG) Everything is OK, but no annotation (5.76 KB) Mikhail, 2014-06-26 19:11

ps3.png - last (third) annotation in place, but not what is needed. (3.93 KB) Mikhail, 2014-06-26 19:12


#1 Updated by Paul about 7 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 about 7 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.


#3 Updated by Paul about 7 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100

Closing this issue as fixed.

Also available in: Atom PDF