[Thread Prev][Thread Next][Index]

Re: [ferret_users] Bar plot possible in ferret?



Yue Chao wrote:

> I just want to know is it possible to make a bar plot in ferret, or even a
> bar plot overlapped with a line plot?
> I don't think so because I don't find any information either in the
> reference mannual or mailing list archive.

Not by default, but people who have worked with ferret for too long
can usually think of something ;-)



let mx = x[i=1:30]
let my = sin(0.2*mx)

plot /vs /line mx/my

let w = 0.4
let /bad=-99 barx=xsequence({-`w`,-`w`,`w`,`w`,-99})
let /bad=-99 bary=xsequence({0,1,1,0,-99})

polygon /key ysequence(mx)+barx, ysequence(my)*bary, ysequence(my)



Try poly/line/fill to get lines around the bars, and use either
/palette=blue to get a single color value, or play with the third argument of
polygon to set the value, e.g.

polygon /key ysequence(mx)+barx, ysequence(my)*bary, 0.5+0*ysequence(my)


Kind regards,

     Hein Zelle


-- 

Dr. Hein Zelle
Advisor Meteorology & Oceanography

Tel:    +31 (0)527-242299
Fax:    +31 (0)527-242016
Email:  hein.zelle@xxxxxxxxxxxxx
Web:    www.bmtargoss.com

BMT ARGOSS
P.O. Box 61, 8325 ZH Vollenhove
Voorsterweg 28, 8316 PT Marknesse
The Netherlands

----Confidentiality Notice & Disclaimer---- 

The contents of this e-mail and any attachments are intended for the
use of the mail addressee(s) shown. If you are not that person, you
are not allowed to read it, to take any action based upon it or to
copy it, forward, distribute or disclose the contents of it and you
should please delete it from your system. BMT ARGOSS does not accept
liability for any errors or omissions in the context of this e-mail or
its attachments which arise as a result of internet transmission, nor
accept liability for statements which are those of the author and
clearly not made on behalf of BMT ARGOSS.


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

Privacy Policy | Disclaimer | Accessibility Statement