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 #75078 is a reply to message #75076] Tue, 15 February 2011 12:42 Go to previous messageGo to previous message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On Feb 15, 3:36 pm, David Fanning <n...@idlcoyote.com> wrote:
> 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.")

oploterror is a wrapper for oploterr from the NASA astronomy IDL
library. I'll try what you wrote when I get home.

More questions! I have ImageMagick installed. When I run convert -
version from my normal bash command line, it works fine, but PS_END
can't find it. Help?

Also, PS_START seems to be ignoring my xsize and ysize keywords; the
following gives me an 8.5x11 ps output:

IDL> ps_start, /nomatch, xsize=10., ysize=10., /
inches,filename=filts[filt]+'_'+dn+'.ps'
[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 19:24:20 PDT 2025

Total time taken to generate the page: 0.00577 seconds