Re: ERRORBAR for CGs [message #83225] |
Fri, 15 February 2013 05:17 |
d.poreh
Messages: 406 Registered: October 2007
|
Senior Member |
|
|
On Friday, February 15, 2013 1:42:22 PM UTC+1, David Fanning wrote:
> David Fanning writes:
>
>
>
> Whoops! Should be:
>
>
>
> cgDisplay
>
> x = Findgen(21)
>
> y = RandomU(-3L, 21) * 50
>
> err = RandomU(seed, 21) * 5
>
> cgPlot, x, y
>
> cgErrPlot, x, y+err, y-err, Color='red'
>
>
>
> Sorry.
>
>
>
> David
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Hi David,
Thanks. works perfect. :)
Cheers,
Dave
|
|
|
Re: ERRORBAR for CGs [message #83226 is a reply to message #83225] |
Fri, 15 February 2013 04:42  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
Whoops! Should be:
cgDisplay
x = Findgen(21)
y = RandomU(-3L, 21) * 50
err = RandomU(seed, 21) * 5
cgPlot, x, y
cgErrPlot, x, y+err, y-err, Color='red'
Sorry.
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: ERRORBAR for CGs [message #83227 is a reply to message #83226] |
Fri, 15 February 2013 04:38  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
dave poreh writes:
> I want to generate ERROR bars in CGs. My data is like:
> x-y-error
> how could i do that with CG plots.
cgDisplayx = Findgen(21)
y = RandomU(-3L, 21) * 50
err = RandomU(seed, 21) * 5
cgPlot, x, y
cgErrPlot, x, y+err, y-err, Color='red'
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|