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

Home » Public Forums » archive » Re: Image w/contours in PostScript?
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: Image w/contours in PostScript? [message #1439 is a reply to message #1434] Tue, 09 November 1993 09:42 Go to previous message
scollick is currently offline  scollick
Messages: 8
Registered: November 1993
Junior Member
> I'm having trouble printing color PostScript files created in
> IDL on our Tektronix Phaser IIsdx printer. The files contain
> images upon which I would like to overlay contours. I have been
> doing the following to create my PostScript files:

[stuff deleted]

I handle this a little differently. I use device coordinates to set
everything up.

In the following example, plot the contour of IMAGE(INX,INY).

----- start
set_plot,'PS'

; set the orientation dependent on x and y box sizes
if iny ge inx then begin ; use portrait mode
x = inx/float(iny) * 8.0
device,/inch,xsize=x,ysize=8.0,bits_per_pixel=8,xoffset=(8.5 -x)/2., $
yoffset=1.5,/color,filename = file
endif else begin ; use landscape mode
y = iny/float(inx) * 8.0
device,/inch,xsize=8.0,ysize=y,bits_per_pixel=8,yoffset=9.5, $
xoffset=(8.5-y)/2.,/color,filename = file,/landscape
endelse

!p.thick=2
!p.position=[0,0,1,1]

; now plot the contour
contour,image,/noerase,xstyle=5,ystyle=5,position=[0,0,1,1], /normal

device, /close
----- end

This works with our Tektronics Phaser color printer.

Good Luck,
--Keith Scollick
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: HELP: Memory allocation problem
Next Topic: Re: HELP: Memory allocation problem

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

Current Time: Wed Oct 08 19:10:06 PDT 2025

Total time taken to generate the page: 0.00473 seconds