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

Home » Public Forums » archive » Position, normal coordinates, and multiple images
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Position, normal coordinates, and multiple images [message #87665] Fri, 21 February 2014 10:43 Go to previous message
BLesht is currently offline  BLesht
Messages: 89
Registered: March 2007
Member
This question undoubtedly illustrates my failure to understand graphic windows, etc. For an animation I'm working on I want to place two images (identically sized) side by side and leave room on the right for a color bar, on the bottom for a graphical elapsed time indicator, and on the top for other annotations. To do this, I was adapting another code that did the essentially same thing with a single image. My original code used cgImage with the POSITION parameter set to [0.1, 0.1, 0.8, 0.8] and normal coordinates for the color bar and other various annotations. Before I read the explanation of the position math (http://www.idlcoyote.com/tips/vaughan.html) I naively set the position parameter arrays for the two images I wanted side by side to [0.1, 0.1, 0.4, 0.8] and [0.4, 0.1, 0.8, 0.8] respectively which results in the second image being larger (28% of the window) than the the first (21% of the window). Before I go back to using device coordinates to place the two images, I was wondering if someone more clever than I had a suggestion for accomplishing this using normal coordinates.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Initialize new variable array with nan or -9999 values
Next Topic: Comparing structures

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

Current Time: Fri Oct 10 07:46:41 PDT 2025

Total time taken to generate the page: 0.40068 seconds