forcing equal aspect ratio for PLOT [message #9716] |
Thu, 07 August 1997 00:00 |
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 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~
|
|
|