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

Home » Public Forums » archive » Square pixels in surface/lego plots
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: Square pixels in surface/lego plots [message #8602 is a reply to message #8407] Wed, 26 March 1997 00:00 Go to previous messageGo to previous message
paulcs is currently offline  paulcs
Messages: 6
Registered: March 1997
Junior Member
Bruce,

Have you tried using the Create_view/center_view routine?
IDL: create_view
WAVE: center_view

Bruce Macintosh <bmac@igpp.llnl.gov> writes:

> David Fanning wrote:
>>
>> Bruce Macintosh writes:
>>
>>> Let us say I have a rectangular array that I wish to make a
>>> lego-style surface plot of.
>>>
>>> What's the simplest way to make sure the pixels come out reasonably
>>> square?
>>
>> Download the program ASPECT from my web page and then make
>> a plot with a square aspect ratio, like this:
>>
>> SURFACE, Dist(60,30), /Lego, Position=Aspect(1.0)
>>
>> David
>>

> This turns out not to quite work. David's program does
> calculate (nicely) the plot size to deal with funny-shaped windows,
> but doesn't deal with oddly-shaped arrays going into surface.
> For example,

> figt=dist(60,10)
> window,0,xs=500,ys=500
> surface,figt,/lego,pos=aspect(1.0)

> certainly doesn't produce square lego pixels.

> Any alternative suggestions? This is vexing...If IDL 5 has a
> /iso keyword I'd even be willing to start installing the beta.

> (Please email as well as post replies - my newsfeed is unreliable.)

> Bruce Macintosh
> bmac@igpp.llnl.gov
--
Paul C. Sorenson
paulcs@netcom.com
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Software for importing EPS files into MS Office applications
Next Topic: Linked List

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

Current Time: Sun Oct 12 07:14:32 PDT 2025

Total time taken to generate the page: 1.04060 seconds