Plotting Axes Over Image. [message #15583] |
Mon, 31 May 1999 00:00  |
Stephen Plumb
Messages: 4 Registered: February 1999
|
Junior Member |
|
|
Greetings all
I have an image displayed in a window (say window1) and I would like to
calibrate it by inserting some sort of x and y axes. The Following code is
what I have tried so far:
!p.position =[0,1,0,1]
plot,[findgen(1024)],[findgen(768)],xrange=[0,1024],yrange=[ 0,768]
tvscl,image
axis,0,0,yaxis=0
The problem is that the axes are offset from the window edges. Ideally I
would like the x Axis to go straight through the centre of the image (ie y=
768/2), from left edge to right edge, and the y axix to go anywhere as long
as it spans the full height of the image. Does anyone have any ideas?
Kind Regards
Stephen
|
|
|
|
|