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

Home » Public Forums » archive » Re: cgPlot question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: cgPlot question [message #75079 is a reply to message #75078] Tue, 15 February 2011 12:36 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Gray writes:

> I'm using cgplot, and I'd like to put some error bars on an overplot.
> I could use oploterror or some such, but I can't get them to show up
> even if I do color=cgcolor('black') - they stay white and are lost in
> the background. Help?

Sorry, I took an hour to take a walk in the sunshine. First
time I've been out of my cell for several months. :-)

Well, first of all, OPLOTERR is brain dead. So,
I can't do much about that. (I assume this is what
you mean by OPLOTERROR?)

But this works:

!P.Background = cgColor('white', 254)
!P.Color = cgColor('black', 253)
x = indgen(101)
y = cgDemoData(1)
errors = randomu(-3L, 101)*4
cgPlot, x, y
oploterr, x, y, errors

Is that what you mean?

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Problem using IDLBridge with virtual machine
Next Topic: Using Label_Region in 3 dimensions

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

Current Time: Wed Oct 08 17:53:02 PDT 2025

Total time taken to generate the page: 0.00424 seconds