I am resending this, as apparntly it didn't get through.
What I want to stress is that the ;label method works since version 4.1
Cheers,
Marta
----- Original Message -----
From: Marta Ghidella
To: World-Wide GMT Usage and Help Mailing List ; ***@NOAA.GOV
Sent: Wednesday, February 13, 2008 2:30 PM
Subject: Re: [GMT-HELP] psscale - no labels
Hello Mark:
I am using a CVS version from Nov 16 2007, 4.2.2b. But the man page for psscale is the same as that for GMT version 4.2.0:
--------
-B
Set annotation, tick, and gridline interval for the colorbar.
The xaxis label will plot beneath a horizontal bar (or verti-
cally to the right of a vertical bar). As an option, use the
yaxis label to plot the data unit to the right of a horizontal
bar (and above a vertical bar). If no values are provided, the
default is to annotate every color level (which may be overrid-
den by ULB flags in the cpt file). Note that since vertical
labels will be plotted as a column of individual characters, no
octal escape characters embedded in the label are allowed. Text
with such characters will be plotted horizontally (relative to
the color scale). By default, labels are generated from the
numerical entries. To specify custom text labels for intervals,
you must append ;label to each z-slice in the cpt file.
--------
If you type:
gmt
at the command prompt, you will find out what version you are using.
....
I found when the semicolon option was introduced:
01-JAN-2006: GMT Version 4.1 Released
[psscale]: Now supports an optional ;label at end of each line in cpt files. If present this label will replace the default annotations when option -L is used.
I think it has to work...
Cheers,
Marta
--
Dra. Marta E. Ghidella
Instituto Antártico Argentino
----- Original Message -----
From: "Mark Fenbers" <***@NOAA.GOV>
To: <GMT-***@HAWAII.EDU>
Sent: Wednesday, February 13, 2008 1:09 PM
Subject: Re: [GMT-HELP] psscale - no labels
Thanks, Marta. But using "TICK_LENGTH 0" produces no ticks (good!), but
the scale is still labeled. The -S produces no dividers (but I prefer
them). I put semicolons after each slice in my .cpt file, but psscale
doesn't like the semicolons and throws some errors and doesn't plot the
scale or any data. I also noticed that the psscale man page does not
list the -S option. Could it be that this feature I am wanting is in
only a recent version of GMT4? I thought I had a pretty recent version
of GMT. How can I tell what minor version I'm using?
Mark
Post by Marta GhidellaPlease look at the attached files. I think this is what you want.
gmtset TICK_LENGTH 0.0
psscale -Ctest.cpt -B::/:"nT": -E -D4/3/7/0.25h -L -S -K -V >
color_scale.ps
psscale -Ctest.cpt -B::/:: -D4/4/7/0.25h -L -S -O -V >> color_scale.ps
gmtset TICK_LENGTH 0.075i
-S :Do not separate different colour intervals with black lines.
And the ";" token at the end of each slice in the cpt file with
nothing following it results in no annotations.