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

Home » Public Forums » archive » Re: printing to postscript with PV_WAVE
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: printing to postscript with PV_WAVE [message #853] Thu, 08 April 1993 14:26 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
laa@lanl.gov (Lee Ankeny) writes:

> In article <1993Mar31.172224.21830@acuson.com>, worth@acuson.com (Douglas
> Worth) wrote:
>>
>> Does anyone know of an easy way to print the plot that you have
>> on your X-display? I know how to plot to Postscript, but my real
>> problem is those times when you work on adding little things to
>> plots and then want a hard copy and there is no way to just
>> zap what is already on the screen. Any help would be appreciated.
>>

> A couple of responses followed this posting. Here's my two bits:

> Bill Thompson suggested using TVRD to read the image off the Wave-generated
> X-Window, and then plotting the image to a Postscript file. Unfortunately,
> this closes the X server connection, and any other Wave windows with it.

Funny, this doesn't happen in IDL, not even when called from inside a widget.

For the record, this is the method I use in IDL.

IMAGE = TVRD(0,0,!D.X_SIZE,!D.Y_SIZE) ;Read window into an array
TVLCT, RED, GREEN, BLUE, /GET ;Get current color tables
SET_PLOT, 'PS' ;Use PostScript device
TVLCT, RED, GREEN, BLUE ;Load color tables
TV, IMAGE ;Display image of window
SET_PLOT, 'X' ;Go back to X-windows

Note: Because most color printers seem to cut off the top and bottom portions
of the page, I usually use the following DEVICE statement for landscape
orientation.

DEVICE, /LANDSCAPE, /COLOR, /INCHES, YOFFSET=9.75, XSIZE=8.5, $
BITS_PER_PIXEL=8, FILENAME=...

Bill Thompson
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IMSL/IDL encapsulated postscript; DVIPS translation
Next Topic: IDL widget_label questions

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

Current Time: Sat Oct 11 14:44:40 PDT 2025

Total time taken to generate the page: 1.84046 seconds