aspect45

Determine axis aspect ratio to bank data near to 45 degrees.

Contents

Syntax

aspectRatio = aspect45(x,y)

Description

x,y  data point vectors

Example

aspect45([1 2],[1 2])
ans =
1.0000

Reference

Visualizing Data by William Cleveland

See also

bank45

Subfunction

Compute error from 45 degrees for aspect ratio a and data steps h,v