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

Home » Public Forums » archive » Re: plot a square.
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: plot a square. [message #22121 is a reply to message #22120] Fri, 20 October 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Peter Brooker (ra5589@email.sps.mot.com) writes:

> Assume that I have the following data
> x=[0,1,1,0]
> y=[0,0,1,1]
>
> this defines a square.
>
> plot,x,y
>
> results in a "non-square" plot.
>
> Is there an easy way to tell IDL to adjust the window size so that the
> square will plot as a square on my screen?

This works in any size window:

Plot, x, y, Position=Aspect(1.0)

You can find ASPECT.PRO on my web page:

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

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@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
Previous Topic: Re: ShapeFile
Next Topic: - Major automotive website

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

Current Time: Thu Oct 09 20:01:49 PDT 2025

Total time taken to generate the page: 0.32495 seconds