[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: plot a square.
- Subject: Re: plot a square.
- From: davidf(at)dfanning.com (David Fanning)
- Date: Fri, 20 Oct 2000 18:45:04 -0600
- Newsgroups: comp.lang.idl-pvwave
- Organization: Fanning Software Consulting
- References: <39F0D290.B05063FC@email.sps.mot.com>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:21815
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