[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: plot a square.

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:




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