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

Home » Public Forums » archive » Re: Displaying 2D arrays
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: Displaying 2D arrays [message #44861 is a reply to message #44860] Tue, 26 July 2005 21:05 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> How about something like this:
>
> s = Size(array, /Dimensions)
> pos=[0.1, 0.1, 0.9, 0.9]
> TVImage, Bytscl(array), Position=pos, /Keep_Aspect
> Plot, [0, s[0]], [0,s[1]], /NoData, /NoErase, $
> Position=pos, XTicklen=1, YTicklen=1

Whoops! Better get those STYLE keywords in there, too. :-)

Plot, [0, s[0]], [0,s[1]], /NoData, /NoErase, $
Position=pos, XTicklen=1, YTicklen=1, XStyle=1, YStyle=1

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Displaying 2D arrays
Next Topic: Re: Read _ tiff with Sub_Rect Keyword

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

Current Time: Fri Oct 10 04:49:19 PDT 2025

Total time taken to generate the page: 1.36524 seconds