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

Home » Public Forums » archive » Re: rough lines in IDL graphic window
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: rough lines in IDL graphic window [message #46378 is a reply to message #46373] Tue, 15 November 2005 04:20 Go to previous messageGo to previous message
franco is currently offline  franco
Messages: 3
Registered: November 2005
Junior Member
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/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: One More Mac Question
Next Topic: widget ?

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

Current Time: Sat Oct 11 18:45:17 PDT 2025

Total time taken to generate the page: 2.79680 seconds