comparison scaleAxisLim.m @ 374:f1289f3b86b8

Merge.
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 26 Jan 2017 14:01:55 +0100
parents 0976e579a6f0
children
comparison
equal deleted inserted replaced
365:f908ce064f35 374:f1289f3b86b8
1 function scaleAxisLim(ah, s)
2 x = ah.XLim;
3 y = ah.YLim;
4
5 xl = x(2) - x(1);
6 yl = y(2) - y(1);
7
8 dx = xl*(s-1);
9 dy = yl*(s-1);
10
11 ah.XLim = x + [-dx/2 dx/2];
12 ah.YLim = y + [-dy/2 dy/2];
13 end