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

Home » Public Forums » archive » Re: cgcontour not outputting?
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: cgcontour not outputting? [message #80979] Thu, 26 July 2012 15:36 Go to previous message
Oana Coman is currently offline  Oana Coman
Messages: 27
Registered: December 2011
Junior Member
Good timing! I was just about to say that I discovered it fails whenever I use /Window haha
Thanks!

On Thursday, July 26, 2012 3:18:05 PM UTC-7, David Fanning wrote:
> Kat writes:
>
> > So I'm trying to output this contour plot that i'm making using cgContour. Code below:
> >
> > cgContour,aa,x(ix),y(iy),$
> > xrange=xrange2, yrange=yrange2, aspect=asp,$
> > /Fill, /Outline,$
> > xstyle=1, ystyle=1, label=2,$;c_labels=levels,$
> > levels=levels, C_colors=Indgen(numLevels(1))+1,$
> > output='PS',$
> > outfilename=s.filename+'_'+month+day+&#3 9;_'+hour+'_'+'contour.ps&am p;#39;,$
> > /Window
> >
> > Did I do this incorrectly?
>
> Oh, wait! I see you are trying to put this into a cgWindow.
> Yes, you can't specify the output filename *AND* put the
> commands in a cgWindow.
>
> The correct commands to do put the contour command into a
> resizeable graphics window, and then create a PostScript file
> from the command is this:
>
> cgContour,aa,x(ix),y(iy),$
> xrange=xrange2, yrange=yrange2, aspect=asp,$
> /Fill, /Outline, label=2, $
> levels=levels, C_colors=Indgen(numLevels(1))+1, /Window
> cgControl, output='s.filename+'_'+month+day+&am p;#39;_'+hour+'_'+'contour.p s'
>
> You don't need the [XY]Style keywords. cgContour always
> does this. You don't need OUTPUT and OUTFILENAME, if you
> are just outputting the contour command to a PostScript file:
>
> cgContour,aa,x(ix),y(iy),$
> xrange=xrange2, yrange=yrange2, aspect=asp,$
> /Fill, /Outline, label=2, $
> levels=levels, C_colors=Indgen(numLevels(1))+1, $
> Output='s.filename+'_'+month+day+&am p;#39;_'+hour+'_'+'contour.p s'
>
> 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
Previous Topic: cgcontour not outputting?
Next Topic: cgwindow and cgplot, bug?

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

Current Time: Wed Oct 08 15:32:53 PDT 2025

Total time taken to generate the page: 0.00476 seconds