[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ploting uncertainties



Martin Skou Andersen (skou@fys.ku.dk) writes:

> Is there a way to plot uncertainties in a plot.
> Say you got some data:
> x = {1,2,3,4}
> y = {2.25,3.75,4.25,5.75}
> Delta y = {0.02,0.04,0.01,0.05}
> then I can plot my data as points
> IDL> plot, x, y, psym=1
> But is there away to get uncertainties on my data?

What you need is some kind of error bar plotting.
Try PLOTERR, ERRPLOT, OPLOTERR, etc. Sometimes it's
just easier to roll your own. :-)

Cheers,

David
-- 
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155