[Thread Prev][Thread Next][Index]

Re: How can I change the color of only the label?



Hi,
This is something you can do with the color and font controls, in this
case pen number.  Pen 2 is red, so:

label/nouser 2.5,3.7,0,0,0.3 @p2January

Will change the pen color for that label.  This is documented in the PPLUS
documentation, sec 4.5 of

http://ferret.pmel.noaa.gov/Ferret/Documentation/PPLUS_Users_Guide/pplus_users_guide.html

Ansley Manke

Namba Takaya wrote:

Dear Sir.

I tried to change the color of only the label "January" below. But I could
not change it.
For example, how to change the label red.

Could you tell me how to do it?

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

SET MODE INTERPOLATE
SET MODE METAFILE

define viewport/xlim=0,0.50/ylim=0.40,1.00 t1
define viewport/xlim=0,0.50/ylim=0.00,0.60 b1
define viewport/xlim=0.50,1.00/ylim=0.40,1.00 t2
define viewport/xlim=0.50,1.00/ylim=0.00,0.60 b2

set data testtest.cdf

define axis/x=90e:130e:1 xax
define axis/y=10s:20n:1 yax
define grid/x=xax/y=yax gridd

let u1=u[x=@fln:5,y=@fln:5]
let v1=v[x=@fln:5,y=@fln:5]
let uu=u1[g=gridd]
let vv=v1[g=gridd]

set region/x=90e:130e/y=10s:20n
set viewport t1
ppl pen 0 2
vector/nolabels/l=1/xskip=1/yskip=1/length=50/set uu,vv
ppl veckey/nouser,0,1,,10.0
PPl vector
!!!!!!!!!!!!!!!!!!!! this part to change the color of the label
label/nouser 2.5,3.7,0,0,0.3 January  !!! how can I change the color of
only the label "Janauary"
go fland 5

sp Fprint metafile.plt -o layout-current.ps -p portrait

quit

!!!!!!!!!!!!!!!!!!!!!!!!!
Thank you in advance.

Takaya Namba

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

--
Ansley Manke  Pacific Marine Environmental Laboratory  Seattle WA  (206)526-6246
 


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement