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

Home » Public Forums » archive » Plotting Axes Over Image.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Plotting Axes Over Image. [message #15583] Mon, 31 May 1999 00:00 Go to next message
Stephen Plumb is currently offline  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
Re: Plotting Axes Over Image. [message #15672 is a reply to message #15583] Tue, 01 June 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Stephen Plumb (plumb@piffleph.und.ac.za) writes:

> Many Thanks Dave
>
> It worked perfectly!

*All* my programs work perfectly! :^)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: Plotting Axes Over Image. [message #15674 is a reply to message #15583] Tue, 01 June 1999 00:00 Go to previous message
Stephen Plumb is currently offline  Stephen Plumb
Messages: 4
Registered: February 1999
Junior Member
Many Thanks Dave

It worked perfectly!
Regards
Stephen
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Appending new data to HDF
Next Topic: IDL and 3D scattered data

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

Current Time: Wed Oct 08 18:13:32 PDT 2025

Total time taken to generate the page: 0.00553 seconds