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 #80980 is a reply to message #80979] Thu, 26 July 2012 15:18 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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+'_'+hour+'_'+'contour.p s',$
> /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+'_'+hour+'_'+'contour.ps'

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+'_'+hour+'_'+'contour.ps'

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 19:36:22 PDT 2025

Total time taken to generate the page: 0.00436 seconds