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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: cgPlot question [message #75073] Tue, 15 February 2011 15:43 Go to next message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On Feb 15, 4:18 pm, David Fanning <n...@idlcoyote.com> wrote:
> Gray writes:
>> 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'
>
> Well, there doesn't appear to be any restrictions
> from either PS_START or PSCONFIG. The results come
> back with a window that is 10 inches by 10 inches.
>
> Of course, you can't put a 10x10 inch window on
> a normal "page" of PostScript output, so you need
> to tell me what you are doing here. Are you plotting
> this on some plotter or something? What makes you
> think there is a "problem"?
>
> 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.")

Odd. I'll email you, this may need more detail than is effective for
the newsgroup.
Re: cgPlot question [message #75074 is a reply to message #75073] Tue, 15 February 2011 13:18 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Gray writes:

> 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'

Well, there doesn't appear to be any restrictions
from either PS_START or PSCONFIG. The results come
back with a window that is 10 inches by 10 inches.

Of course, you can't put a 10x10 inch window on
a normal "page" of PostScript output, so you need
to tell me what you are doing here. Are you plotting
this on some plotter or something? What makes you
think there is a "problem"?

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.")
Re: cgPlot question [message #75076 is a reply to message #75074] Tue, 15 February 2011 12:53 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Gray writes:

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

OK, well, this works for me, too, then:

x = indgen(101)
y = cgDemoData(1)
errors = randomu(-3L, 101)*4
cgPlot, x, y
oploterror, x, y, errors, errcolor=cgcolor('black')

> 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?

PS_END spawns the "convert" command to check for its presence.
If it can't find it, I presume it is because the "convert" command
is not on the path of the shell running IDL. Macintosh computers
are a bit of a mystery to me, so if you have a suggestion for how
I can solve this problem, I'm all ears.

Someone suggested a configuration parameter that could locate
ImageMagick. Maybe I'll look into that a bit.

> 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'

Humm. That might be a PSConfig limitation. I'll look into it
and get back to you.

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.")
Re: cgPlot question [message #75078 is a reply to message #75076] Tue, 15 February 2011 12:42 Go to previous messageGo to next 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'
Re: cgPlot question [message #75079 is a reply to message #75078] Tue, 15 February 2011 12:36 Go to previous messageGo to next 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.")
Re: cgPlot question [message #75089 is a reply to message #75079] Tue, 15 February 2011 10:47 Go to previous messageGo to next message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On Feb 15, 1:39 pm, Gray <grayliketheco...@gmail.com> wrote:
> On Feb 15, 1:37 pm, Gray <grayliketheco...@gmail.com> wrote:
>
>> Quick question - does cgPlot allow arrays to be passed as psym and/or
>> color?  Or do they have to be scalar?
>
> Never mind, I can just use cgPlotS!  Ha.  I'm switching from NG to CG
> because NG is taking ~3 hours on my brand new iMac to create a single
> plot.  I have to remind myself what's available in DG/CG.

Actually, I do have a question.

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?
Re: cgPlot question [message #75090 is a reply to message #75089] Tue, 15 February 2011 10:39 Go to previous messageGo to next message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On Feb 15, 1:37 pm, Gray <grayliketheco...@gmail.com> wrote:
> Quick question - does cgPlot allow arrays to be passed as psym and/or
> color?  Or do they have to be scalar?

Never mind, I can just use cgPlotS! Ha. I'm switching from NG to CG
because NG is taking ~3 hours on my brand new iMac to create a single
plot. I have to remind myself what's available in DG/CG.
Re: cgPlot question [message #75152 is a reply to message #75073] Wed, 16 February 2011 09:59 Go to previous message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On Feb 15, 6:43 pm, Gray <grayliketheco...@gmail.com> wrote:
> On Feb 15, 4:18 pm, David Fanning <n...@idlcoyote.com> wrote:
>
>
>
>
>
>
>
>
>
>> Gray writes:
>>> 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'
>
>> Well, there doesn't appear to be any restrictions
>> from either PS_START or PSCONFIG. The results come
>> back with a window that is 10 inches by 10 inches.
>
>> Of course, you can't put a 10x10 inch window on
>> a normal "page" of PostScript output, so you need
>> to tell me what you are doing here. Are you plotting
>> this on some plotter or something? What makes you
>> think there is a "problem"?
>
>> 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.")
>
> Odd.  I'll email you, this may need more detail than is effective for
> the newsgroup.

Can you put in a /SILENT keyword for PS_END?
  Switch to threaded view of this topic Create a new topic Submit Reply
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 13:33:20 PDT 2025

Total time taken to generate the page: 0.00484 seconds