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 #22120 is a reply to message #22117] Fri, 20 October 2000 00:00 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 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?


Did you mean:

window, win, 100, 100

Or, will this get you started?

plots, [0,100,100,0], [0,0,100,100], /device

The device keyword forces the operation to occur in pixel space.
Since your coordinate axes don't seem to matter to you, this is
probably the best option. Note you can get the display size in pixels
from the !D system variable, in case you need to scale accordingly.

Craig


--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[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: Sat Oct 11 09:08:39 PDT 2025

Total time taken to generate the page: 1.44297 seconds