[Thread Prev][Thread Next][Index]

[ferret_users] 2nd Y-scale/lablel color?



Dear all,

I'm trying to make an XY plot with 2 y-axis. I was wondering... is there a way I can change the color for the label & scale of one of the y-axis I am plotting? In my case, I am trying to make the Y-axis scale & label for the variable "lux" have a red color.

Thanks!



set data/format=delimited/delim=" "/var="date,time,temp1,lux"/type="date,time,num,num"/col=4 data6.asc 
let tstep = date + time/24.
define axis/T/T0=1-jan-1900/UNIT=days ttaxis=tstep
let dummy = t[gt=ttaxis]
let var1 = reshape(temp1, dummy)
let lux2 = reshape(lux, dummy)

go multi_yaxis_plot1 var1 2 "0.21"
plot/vlimits=0:40:5/nolabel var1
ppl plot
go unlabel 1
go unlabel 2
label/nouser -0.7,3,0,90,0.15 "degC"
go multi_yaxis_overlay lux2 1 "-" "0,1200,100" "Lux" 0.15 1.5
label/nou 4.87 5.7 0 0 0.13 "@P2Lux"
label/nou 4.9 5.47 0 0 0.13 "Temp"



Sample data:

7/9/2013 0:01:01 22 50
11/9/2013 6:01:01 25 400
11/9/2013 12:01:01 27 1000
11/9/2013 18:01:01 24 850
11/9/2013 23:01:01 23 80
11/10/2013 0:01:01 22 50
11/10/2013 6:01:01 25 400

[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement