mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-07 12:58:13 +00:00
98_SVG.pm: add ysprintf option to the .gplot file (Forum #88460)
git-svn-id: https://svn.fhem.de/fhem/trunk@16830 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5363894bc4
commit
df21f559cc
@ -1904,7 +1904,8 @@ SVG_render($$$$$$$$$$)
|
||||
}
|
||||
$off2 += $th/4;
|
||||
#-- text
|
||||
my $txt = sprintf("%g", $i);
|
||||
my $name = ($axis==1 ? "y":"y$axis")."sprintf"; # Forum #88460
|
||||
my $txt = sprintf($conf{$name} ? $conf{$name} : "%g", $i);
|
||||
SVG_pO
|
||||
"<text x=\"$off1\" y=\"$off2\" class=\"ylabel\"$align>$txt</text>";
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ set y2tics
|
||||
set grid
|
||||
set ylabel "Rain (mm)"
|
||||
set y2label "Temperature"
|
||||
set ysprintf %.2f
|
||||
|
||||
#Log.Garden 4:Garden.T\x3a:15:
|
||||
#Log.Garden 10:Garden.T\x3a:0:delta-h
|
||||
|
@ -10,6 +10,7 @@ set y2tics
|
||||
set grid
|
||||
set ylabel "Humidity"
|
||||
set y2label "Temperature"
|
||||
set ysprintf %.1f
|
||||
|
||||
#Log.Cellar 4:Cellar.T\x3a:10:
|
||||
#Log.Cellar 6:Cellar.T\x3a:10:
|
||||
|
Loading…
x
Reference in New Issue
Block a user