2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-13 05:06:35 +00:00

SVG: take yrange seriously

git-svn-id: https://svn.fhem.de/fhem/trunk@4315 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-12-02 22:07:27 +00:00
parent ea7b61cd0c
commit 43272c259a

View File

@ -1172,12 +1172,12 @@ SVG_render($$$$$$$$$)
for my $li (0..$#limit-1) {
my $l = $limit[$li];
next if($dh > $l*10);
$ma = SVG_doround($hmax{$a}, $l, 1);
$mi = SVG_doround($hmin{$a}, $l, 0);
$ma = $conf{$yra} ? $hmax{$a} : SVG_doround($hmax{$a}, $l, 1);
$mi = $conf{$yra} ? $hmin{$a} : SVG_doround($hmin{$a}, $l, 0);
if(($ma-$mi)/$l >= 7) { # If more then 7 steps, then choose next
$l = $limit[$li+1];
$ma = SVG_doround($hmax{$a}, $l, 1);
$mi = SVG_doround($hmin{$a}, $l, 0);
$ma = $conf{$yra} ? $hmax{$a} : SVG_doround($hmax{$a}, $l, 1);
$mi = $conf{$yra} ? $hmin{$a} : SVG_doround($hmin{$a}, $l, 0);
}
$step = $l;
last;