David Fanning wrote:
> Well, clearly the "problem" is resolution. You could try
> smoothing the data before you contour it on your display.
David,
yes the problem is resolution, and I've partially resolved it using
your suggestion http://www.dfanning.com/graphics_tips/zfonts.html
with the z-buffer.
My code looks like this:
thisDevice = !D.Name
Set_Plot, 'Z'
Device, Set_Resolution=[1200,1200]
contour,u,x,y,levels=vals,/fill,c_colors=col,charsize=4.0,fo nt=1
contour,v,x,y,nlevels=15,/noerase,c_thick=4,charsize=4.0,fon t=1
snapshot = TVRD()
Set_Plot, thisDevice
window,1,xsize=300,ysize=300
new= Rebin(snapshot, 300, 300)
TV, new
write_tiff, 'pl.tiff', reverse( new, 3 ), /append
In grayscale it works simply great!!
My problem now is with colors. If I load a color table, I make the
following modification:
snapshot = TVRD(true=1)
Set_Plot, thisDevice
window,1,xsize=300,ysize=300
new= Rebin(snapshot, 3, 300, 300)
TV, new, /true
write_tiff, 'pl.tiff', reverse( new, 3 ), /append
but now it doesn't work. It shows 3 small rough pictures.
Unfurtunately I have not a lot of experience with the z-buffer
and colors. Is there a simple solution?
I'm using IDL 6.1 on a Mac Powerbook G4.
Thank you.
Franco
> Or, you could even try resizing your data set before you
> contour it on your display. Be sure to set the /INTERP
> keyword on CONGRID, or this won't help.
>
> In either case, you are changing the data, of course, so
> you have to decide if aesthetic concerns are more important
> than scientific concerns. :-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
|