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

Home » Public Forums » archive » axes on an image(FAQ?)
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
axes on an image(FAQ?) [message #3064] Mon, 07 November 1994 18:18 Go to next message
meir is currently offline  meir
Messages: 5
Registered: November 1994
Junior Member
Using IDL, I want to have a color image, using tvscl. How do I put axes on the
image? (axes should be on edge of image, to indicate location).
Thus, for an image of 450*480 , I want to put an axis, with the
x axis going linearly from 0 to 450, and the y axis going in log scale from

1 to 1/64. (log(y)) is linear and decreasing with increasing y position.

How can I generate such axes on the image?
Thanks
Re: axes on an image(FAQ?) [message #3112 is a reply to message #3064] Sun, 13 November 1994 12:39 Go to previous message
pellet is currently offline  pellet
Messages: 12
Registered: October 1994
Junior Member
meo@toka.ireq-ccfm.hydro.qc.ca wrote:
: ||Using IDL, I want to have a color image, using tvscl. How do I put axes on the
: ||image? (axes should be on edge of image, to indicate location).

This problem is described in IDL User's Guide chapter 15.
The solution depends on wether the graph is displayed on fixed size
pixel device (screen) or a scalable pixel device (PS). BTW, the
!D.FLAGS system variable can tell you which type the selected device is:

I implemented it, and it works just fine.

Jeff
RE:axes on an image(FAQ?) [message #3137 is a reply to message #3064] Tue, 08 November 1994 15:13 Go to previous message
meo is currently offline  meo
Messages: 6
Registered: November 1994
Junior Member
||Using IDL, I want to have a color image, using tvscl. How do I put axes on the
||image? (axes should be on edge of image, to indicate location).
||Thus, for an image of 450*480 , I want to put an axis, with the
||x axis going linearly from 0 to 450, and the y axis going in log scale from

Regarding this, First of all, keep track of the position of the Bottom half of the
image is w.r.t the device (ex:tvscl,image,xpos,ypos)

Then typing:
contour,image,xx,yy,pos=[xstart,ystart,xfin,yfin],/nodata,/d evice,/noerase $
,YST=1,XST=1,TICKLEN=-0.03

you generate your own xx & yy array as you want. POS is array for the position of the
contour. The rest of the keywords are the reference book (P.2-2 of ver 3.5)
Try it out, It worked for me!

Good luck

Fern..
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL on DEC 3000
Next Topic: Re: How to record IDL animations to MPEG?

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

Current Time: Wed Oct 08 17:35:22 PDT 2025

Total time taken to generate the page: 0.00514 seconds