[Thread Prev][Thread Next][Index]

[ferret_users] Plot multiple lines using plot/vs



Hi,

I'd like to plot multiple lines using plot/vs. I am unable to figure which combination of commands will do the job. For example:

yes? let x1 = {1,2,3,4}
yes? let y1 = {1,2,3,4}

yes? let x2 = {1.1,2.1,3.1,4.1}
yes? let y2 = {1.1,2.1,3.1,4.1}

yes? plot/hlim=0:5:1/vlim=0:5:1/vs/line/set x1,y1
yes? plot/vs/line/ov/set x2,y2
yes? go legend 1 "1st line"
yes? go legend 2 "2nd line"
yes? ppl plot
yes? ppl pot/over

Is there any other method like:

yes? plot/hlim=0:5:1/vlim=0:5:1/vs/line/set {x1,y1}, {x2,y2}
yes? go legend 1 "1st line"
yes? go legend 2 "2nd line"
yes? ppl plot

I am using this to get the legends. Any other method is fine as long as i am able to get multiple lines and the legends in one plot.

Thanks,
Samrat.


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

Privacy Policy | Disclaimer | Accessibility Statement