comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: ERRORBAR for CGs
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: ERRORBAR for CGs [message #83225] Fri, 15 February 2013 05:17
d.poreh is currently offline  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 Go to previous message
David Fanning is currently offline  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 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: One common title for multiplot using CGPLot
Next Topic: Plot

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:05:48 PDT 2025

Total time taken to generate the page: 0.00672 seconds