2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-12 16:46:35 +00:00

Bugfix, userdefs.php now works with all gnuplot-versions

git-svn-id: https://svn.fhem.de/fhem/trunk@1544 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nitroxmh 2012-05-07 20:59:34 +00:00
parent 9481247630
commit 961d184697

View File

@ -171,8 +171,9 @@ if ($gnuplottype=='piri' or $gnuplottype=='fs20')
$gnuplotpng=$drawuserdef.".sm.png";
$messageA=<<<EOD
set terminal png transparent crop
set output '$AbsolutPath/tmp/$gnuplotpng'
set terminal png transparent
set key off
set xdata time
set timefmt '%Y-%m-%d_%H:%M:%S'
set noytics
@ -252,10 +253,7 @@ if ($gnuplottype=='piri' or $gnuplottype=='fs20')
$im2 = imagecreatefrompng("$AbsolutPath/tmp/$gnuplotpng");
$w2 = imagesx($im2);
$h2 = imagesy($im2);
#Old Gnuplot
#ImageCopy($im,$im2,163,0,0,10,$w2-20,$h2);
#New Gnuplot
ImageCopy($im,$im2,163,0,10,420,$w2-20,50);
ImageCopy($im,$im2,163,10,0,0,$w2,$h2);
}