From a3f00be4b56ef6fe110f9cf3086aa29be7a1912c Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Tue, 3 Feb 2015 12:41:58 +0000 Subject: [PATCH] 98_SVG.pm: add xtics (Forum #33266) git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@7844 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/98_SVG.pm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/FHEM/98_SVG.pm b/FHEM/98_SVG.pm index 566ab1a1a..ac2a0cd66 100755 --- a/FHEM/98_SVG.pm +++ b/FHEM/98_SVG.pm @@ -339,6 +339,11 @@ SVG_PEdit($$$$) $ret .= "".SVG_txt("ytics", "left", $conf{ytics}, 16).""; $ret .= "".SVG_txt("y2tics","right", $conf{y2tics}, 16).""; $ret .= ""; + if( $conf{xtics} ) { + $ret .= ""; + $ret .= SVG_txt("xtics", "x   ", $conf{xtics}, 16).""; + $ret .= ""; + } my $max = @{$conf{lType}}+1; my ($desc, $cnt) = ("Spec", 0); @@ -578,8 +583,9 @@ SVG_WriteGplot($) push @rows, "set timefmt \"%Y-%m-%d_%H:%M:%S\""; push @rows, "set xlabel \" \""; push @rows, "set title '$FW_webArgs{title}'"; - push @rows, "set ytics ".$FW_webArgs{ytics}.""; - push @rows, "set y2tics ".$FW_webArgs{y2tics}.""; + push @rows, "set xtics ".$FW_webArgs{xtics} if($FW_webArgs{xtics}); + push @rows, "set ytics ".$FW_webArgs{ytics}; + push @rows, "set y2tics ".$FW_webArgs{y2tics}; push @rows, "set grid".($FW_webArgs{gridy} ? " ytics" :""). ($FW_webArgs{gridy2} ? " y2tics":"").""; push @rows, "set ylabel \"$FW_webArgs{ylabel}\"";