Lock current aspect ratio

Average rating
(1 vote)

Finds and locks the current aspect ratio of the top graph. Great for resizing image plots.

Function LockAspect()
	variable aspectRatio
 
	GetWindow kwtopWin psize
	aspectRatio = (V_right - V_left)/(V_bottom-V_top)
	ModifyGraph width = {Aspect,aspectRatio}
End

Back to top