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.")
|