X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 08 Jun 2008 08:12 PM by  anon
Outputting multi-panel images to postscript
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
08 Jun 2008 08:12 PM
    I'm using IDL v7.0 on Mac OS X v10.5.2 and have been having trouble with the image scaling in output to the postcript device. For example, if I run the following IDL script (with the image array already set): set_plot, 'ps' device, filename='test.ps' device, xsize=4, ysize=4, /inches tvscl, image, 0, 0, /inches, xsize=1, ysize=1 tvscl, image, 2, 0, /inches, xsize=1, ysize=1 As expected, this outputs two panels (offset in x) to the postscript file, each containing the same image. However, the extent of the image along the y axis is different in each panel (it's smaller in the right panel), despite having the same "ysize" in the code above. What's the problem here?

    Deleted User



    New Member


    Posts:
    New Member


    --
    08 Jun 2008 08:12 PM
    This reply is a little late... Have you tried closing IDL and then looking at the output? IDL does some buffering of its PS output commands (at least it does in v6.2), which only seem to be emptied (on my machine) when IDL is closed. I was just about to post a thread asking about this problem, when i saw yours. Another option (which only seems to work occaisonally for me) is to use the EMPTY command. Cheers, Callum

    Deleted User



    New Member


    Posts:
    New Member


    --
    08 Jun 2008 08:12 PM
    Maybe there is an issue either with your image or with your viewer. I just ran the following code using IDL's favorite dummy image creator, DIST( ): image = dist(360) set_plot, 'ps' device, FILENAME='test.ps' device, XSIZE=4, YSIZE=4, /INCHES tvscl, image, 0, 0, /INCHES, XSIZE=1, YSIZE=1 tvscl, image, 2, 0, /INCHES, XSIZE=1, YSIZE=1 device, /CLOSEViewing the output of the above in both GhostView on Windows and on whatever opens PostScript's on Mac as PDF's, the two boxes are identical 1" square in size and positioned where I expected them, 1" apart from one another. James Jones
    You are not authorized to post a reply.