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

Home » Public Forums » archive » forcing equal aspect ratio for PLOT
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
forcing equal aspect ratio for PLOT [message #9716] Thu, 07 August 1997 00:00
Michael Hearne is currently offline  Michael Hearne
Messages: 1
Registered: August 1997
Junior Member
I am having some trouble forcing plot to maintain an equal aspect ratio.
For example, if you create a series of points that define a square:
square(0,*) = [0,0,1,1,0]
square(1,*) = [0,1,1,0,0]
plot, square(0,*),square(1,*)

you will get a square, with 90 degree vertices.

Now rotate this matrix (I believe this is the correct method):
theta = -!pi/4 ; 45 degrees
rot(0,*) = [cos(theta), -sin(theta)]
rot(1,*) = [sin(theta),cos(theta)]
newsquare = square##rot ; matrix multiplication
plot, newsquare(0,*),newsquare(1,*)

I get a rotated non_square that does _not_ have 90 degree vertices
because, I think, the x axis and y axis are not equal in length. I
measured them on my screen with a ruler. Is there some way to force the
aspect ratio for PLOT to be 1? Setting xstyle and ystyle equal to 1
does not seem to work.

Help!
-Mike Hearne
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~
Michael G. Hearne email: mhearne@csc.noaa.gov |
Coastal Remote Sensing phone: 803 974-6281 |
TPMC/NOAA Coastal Services Center fax: 803 974-6312 |
2234 S. Hobson Ave., Charleston, SC 29407 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: cube(*,*,i)
Next Topic: Share memory between C and IDL-RPC-server?

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

Current Time: Wed Oct 08 13:48:45 PDT 2025

Total time taken to generate the page: 0.00570 seconds