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

Home » Public Forums » archive » overlying an image and a contour plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
overlying an image and a contour plot [message #17876] Fri, 12 November 1999 00:00 Go to previous message
tebbens is currently offline  tebbens
Messages: 1
Registered: November 1999
Junior Member
We are trying to overlay an image and a contour
plot, but can't get a perfect match in position
and size.

On the contour plot, the x axis is 652 values and
the y axis is 5048 values. We want to fit the
image exactly into the contour plot.

The following commands are used:

position=[.6,.05,r,.95]
tv, image, .6, .05, $
xsize=position(2)-position(0), $
ysize=position(3)-position(1), /normal
xvalue = 652.
yvalue = 5048.

; r should be the length of the x-axis in the
; normal coordinate system (x and y window
; size=1)
r= 10./7.*(.9 * xvalue/yvalue) + .6

contour, xstyle=1, ystyle=1, /iso, $
position=[.6,.05,r,.95], /noerase

The image and contour overlay, but the x-axis of
the image is too long to fit the contour plot.
When the command tvimage is used instead of tv,
the images are the same size, but are offset in
both x and y direction by a few pixels.

We think the problem is with the r value, but
we don't know why the simple commands above
don't work.

Any suggestions to get these to overlay?

Thanks in advance.


Sent via Deja.com http://www.deja.com/
Before you buy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MPFIT update
Next Topic: Re: determining the display size (IDL)

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

Current Time: Sat Oct 11 08:03:32 PDT 2025

Total time taken to generate the page: 0.16128 seconds