Re: cgPlot question [message #75073] |
Tue, 15 February 2011 15:43  |
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   |
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   |
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   |
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   |
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 #75152 is a reply to message #75073] |
Wed, 16 February 2011 09:59  |
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?
|
|
|