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

Home » Public Forums » archive » Re: how to do that?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: how to do that? [message #35106 is a reply to message #35105] Tue, 13 May 2003 05:38 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
tomson (tom2959@21cn.com) writes:

> Hi,I want to analyze a JPG figure. I hope the figure can be put in a plot,
> like this:
>
> plot,[0,1],[0,1],xrange=[0,1],yrange=[0,1],/nodata
> READ_JPEG, 'test.jpg', a
> ;I want to put the image in the above plot just fill the rectangle. How
> to do that?
> ;Then I want to add other on the plot...
> oplot,x,y

With TVIMAGE you would do it like this:

p=[0.15, 0.15, 0.9, 0.9]
TVImage, a, Position=p
Plot, [0,1],[0,1],xrange=[0,1],yrange=[0,1],/nodata, $
/NoErase, Position=p
Oplot, x, y

With Liam Gumley's ImgDisp you just set the AXIS keyword,
I think.

You can find TVIMAGE here:

http://www.dfanning.com/programs/tvimage.pro

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: satellite data
Next Topic: Re: FINDFILE - how many files can it find?

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

Current Time: Wed Oct 08 19:25:31 PDT 2025

Total time taken to generate the page: 0.17018 seconds