axes on an image(FAQ?) [message #3064] |
Mon, 07 November 1994 18:18  |
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  |
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  |
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..
|
|
|