Re: PRINTER device, TV, and image position [message #28184 is a reply to message #28179] |
Tue, 27 November 2001 07:15   |
Liam E. Gumley
Messages: 378 Registered: January 2000
|
Senior Member |
|
|
Ray Muzic wrote:
> Is it just me or does 'PRINTER' device ignore (x,y)
> position specified in the TV command?
> : TV, Image [, X, Y [, Channel]]
>
> I am trying to put three images next to each other on a page.
> Of course I could make a single array with the composite
> image but that seems unnecessary as the 'PS' device honored
> the "x,y,/centimeters", arguments specified in TV.
> It seems to be more than the 'PRINTER' device just ignoring
> /centimerers since I tried x position of 600 (dots) on a
> 600 dpi printer and the image position was not altered.
>
> Comments?
> Workarounds?
I'd use a program such as IMDISP:
http://www.gumley.com/PIP/Free_Software.html
that allows the image position to be specified by a POSITION vector or
the system variable !P.MULTI, e.g.,
entry_device = !d.name
set_plot, 'PRINTER'
!p.multi = [0, 3, 1, 0, 0]
imdisp, dist(256)
imdisp, dist(256)
imdisp, dist(256)
device, /close_document
set_plot, entry_device
IMDISP has other advantages as well:
- Supports WIN, MAC, X, CGM, PCL, PRINTER, PS, and Z graphics devices,
- Image is automatically byte-scaled (can be disabled),
- Custom byte-scaling of Pseudo color images via the RANGE keyword,
- Pseudo (indexed) color and True color images are handled
automatically,
- 8-bit and 24-bit graphics devices are handled automatically,
- Decomposed color settings are handled automatically,
- Image is automatically sized to fit the display (can be disabled),
- Color table splitting via the BOTTOM and NCOLORS keywords,
- Image aspect ratio customization via the ASPECT keyword,
- Resized images can be resampled (default) or interpolated,
- Top down image display via the ORDER keyword (!ORDER is ignored),
- Selectable display channel (R/G/B) via the CHANNEL keyword,
- Background can be set to a specified color via the BACKGROUND keyword,
- Screen can be erased prior to image display via the ERASE keyword,
- Plot axes can be drawn on the image via the AXIS keyword,
- Photographic negative images can be displayed via the NEGATIVE
keyword.
Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
|
|
|