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 #887 is a reply to message #883] Thu, 01 April 1993 07:04 Go to previous messageGo to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
worth@acuson.com (Douglas Worth) writes:

> 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.

The following will do the trick.

IMAGE = TVRD(0,0,!D.X_SIZE,!D.Y_SIZE) ;Read window as image
TVLCT,RED,GREEN,BLUE,/GET ;Get color table
SET_PLOT,'PS' ;Select PostScript
;
; Most color PostScript printers don't seem to able to plot all the way to the
; edge. Therefore, I make the area available for use by IDL somewhat smaller
; in the long dimension of the paper. The following shows the settings I use
; for landscape and portrait modes.
;
DEVICE, /LANDSCAPE, /COLOR, /INCHES, YOFFSET=9.75, XSIZE=8.5, BITS_PER_PIXEL=8
;
; or
;
;DEVICE, /PORTRAIT, /COLOR, /INCHES, XOFFSET=0.75, YOFFSET=1.25, $
; XSIZE=7.0, YSIZE=8.5, BITS_PER_PIXEL=8
;
TVLCT,RED,GREEN,BLUE ;Load color table
TV,IMAGE ;Display image of window
SET_PLOT,'X' ;Return to X-windows

You might want to play with the offset and size parameters to suit yourself.

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 08:03:36 PDT 2025

Total time taken to generate the page: 1.51998 seconds