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

Home » Public Forums » archive » Re: PRINTER device, TV, and image position
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: PRINTER device, TV, and image position [message #28179] Tue, 27 November 2001 08:08 Go to previous message
nobody@nowhere.com (S is currently offline  nobody@nowhere.com (S
Messages: 55
Registered: July 2001
Member
On 27 Nov 2001 06:48:09 -0800, Ray Muzic <muzic@uhrad.com> 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?
>
> Ray Muzic

I do exactly what you mention, overlaying 1,2 or 3 images on a graph page
using tv and the ps device. You do set the !p.multi correctly? Here's what
I do (some of the commands are other procedures I've written):

;this is the procedure to put an image into the graph window:
;first, you add [1,0,0,0,0] to !p.multi, forcing it not to erase the window
;on the second plot command. then, you use the x,y,xsize=,ysize=, /inches
;keywords to specify that you want the image in a certain place and a certain
;size on the plot window.
;;;;;;;;;;;;;;;;;;;CAN YOU BELIEVE IT? I ACTUALLY DOCUMENTED SOMETHING!!!!!!;;
pro graphpic,edata,graphdata,imagedata
back=!p.multi
!p.multi=back+[1,0,0,0,0] ;this disables clearing plot window.
pgsize, 15 ;this size seems good (in mm, square image).
plot, edata,graphdata,xtitle='Energy (eV)',ytitle='Counts',$
xstyle=1,yrange=[0,1000]
tvscl, rebin(imagedata,186,186),3.7,3.7,xsize=1.8,ysize=1.8,/inches
arrow, 1.8548,550,1.8567,850,/data,/solid
psoff
!p.multi=back
end

--
Steve S.

steve@NOSPAMmailaps.org
remove NOSPAM before replying
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Global chaos (was: Re: can i place a job advert)
Next Topic: Translate simple syntax from Matlab into IDL

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

Current Time: Fri Oct 10 07:15:34 PDT 2025

Total time taken to generate the page: 0.24030 seconds