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

Home » Public Forums » archive » Re: Contour object quality
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: Contour object quality [message #35430 is a reply to message #35429] Fri, 13 June 2003 00:06 Go to previous messageGo to previous message
Jacques Basson is currently offline  Jacques Basson
Messages: 17
Registered: May 1999
Junior Member
David Fanning wrote:
> Jacques Basson writes:
>
>
>> I just can't seem to get good quality PostScript from IDLgrContour. A
>> brief example is at the end of this post. The direct graphics gives nice
>> smooth polylines, but the object output produces pretty jagged lines. I
>> suspect that it is the contour routine that is the problem because the
>> axis numbers are pretty smooth.
>>
>> I have tried playing with pretty much all of the keywords in
>> IDLgrContour and IDLgrClipboard, but nothing seems to improve the quality.
>>
>> Is there some trick here that I am missing - some magic keyword that
>> will sort out my plots?
>
>
> The magic keyword is RESOLUTION. :-)
>
> I set up your clipboard like this and got reasonable
> results:
>
> contwindow = obj_new('IDLgrClipboard', Dimensions=[5,5], $
> Units=1, Resolution=[2.54/300., 2.54/300.])
>
> You can learn more about this in this article:
>
> http://www.dfanning.com/ographics_tips/object_eps.html
>
> Cheers,
>
> David
>

Thanks David, that put me on the right track! Although it does lead me
to another question... According to the IDL documentation, the
resolution for direct graphics is 1000 dots/cm. So when I said that I
did try all the keywords to IDLgrClipboard, I had tried

contwindow = obj_new('IDLgrClipboard', dimensions=[17.8,12.7], $
units=2, Resolution=[0.001, 0.001])

but got the error message

% OBJ_NEW: Window DIMENSION[0] exceeds maximum.
Clamping to screen dimensions.

(the dimensions of 178mm X 127mm are taken from the direct graphics
output). 292dpi (which is borderline for high quality printing of lines)
is the maximum possible resolution that I could get with those
dimensions. And for your 5"x5" plot, the maximum is 409dpi.

So it seems like I can't get the direct graphics resolution. However,
no-one *really* needs 2540dpi, but I can't even get 600dpi, which is a
noticeable for my required A3 output.

Interestingly, the object eps file was twice the size of the direct
graphics eps file (object at 292dpi - direct at 2540dpi).

Thanks,
Jacques
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: NAN in contour
Next Topic: Clearing widget events

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

Current Time: Sat Oct 11 06:15:55 PDT 2025

Total time taken to generate the page: 1.43910 seconds