Contour object quality [message #35457] |
Thu, 12 June 2003 00:30 |
Jacques Basson
Messages: 17 Registered: May 1999
|
Junior Member |
|
|
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?
Thanks,
Jacques
pro test_con
set_plot, 'PS'
device, filename='C:\direct.eps', /encapsulated
contour, dist(400)
device, /close
set_plot, 'WIN'
contmodel = obj_new('IDLgrModel')
contview = obj_new('IDLgrView', viewplane_rect=[-25, -5, 430, 430])
contwindow = obj_new('IDLgrClipboard', dimensions=[500,500])
cont = obj_new('IDlgrContour', dist(400), geomz=0, /planar)
y_axis = obj_new('IDLgrAxis', 1, range=[0,399])
contmodel -> Add, cont
contmodel -> Add, y_axis
contview -> Add, contmodel
contwindow -> Draw, contview, /vector, /postscript,
filename='C:\object.eps'
obj_destroy, contview
obj_destroy, contwindow
end
|
|
|