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

Home » Public Forums » archive » Re: colorbar positioning in postscript
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: colorbar positioning in postscript [message #51330 is a reply to message #51327] Mon, 13 November 2006 08:17 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
jesscobrien@gmail.com writes:

> Originally I tried writing to postscript using these normalised
> positions, but didnt realise I needed to get the size of the postscript
> window right. So have removed my rescaling of the positions. And set my
> postscript window size such that it has the same aspect ratio as the
> image + colorbar combined. However this aspect ratio doesnt cater for
> the axis annotations of the image and colorbar, which change the aspect
> ratio, so my PS version shows the colorbar oversized relative to the
> image. How can I get the full region of my image and colorbar,
> including the space taken up by annotations, so that I can set the PS
> size with the correct aspect ratio?

Say what!? :-(

Here is how I do this, assuming I have just displayed my
graphics in a window on my display to see how it all looks,
with my graphics display command DoMyThingHere:

; Set up PS with same aspect as display window
keywords = PSConfig(_Extra=PSWindow(), CANCEL=cancelled)
IF ~cancelled THEN BEGIN
thisDevice = !D.Name
thisFont = !P.Font
!P.Font = 1
Set_Plot, 'PS'
Device, _Extra=keywords
DoMyThingHere
Device, /Close
!P.Font = thisFont
Set_Plot, thisDevice
ENDIF

Perhaps this is a problem with how DoMyThingHere is
written. I don't know. I've just never run into the
problems you seem to be having.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Mac Cursor
Next Topic: Re: Random selection

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

Current Time: Sun Oct 12 06:13:08 PDT 2025

Total time taken to generate the page: 0.39929 seconds