mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-13 05:06: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:
parent
9481247630
commit
961d184697
@ -171,8 +171,9 @@ if ($gnuplottype=='piri' or $gnuplottype=='fs20')
|
|||||||
$gnuplotpng=$drawuserdef.".sm.png";
|
$gnuplotpng=$drawuserdef.".sm.png";
|
||||||
|
|
||||||
$messageA=<<<EOD
|
$messageA=<<<EOD
|
||||||
|
set terminal png transparent crop
|
||||||
set output '$AbsolutPath/tmp/$gnuplotpng'
|
set output '$AbsolutPath/tmp/$gnuplotpng'
|
||||||
set terminal png transparent
|
set key off
|
||||||
set xdata time
|
set xdata time
|
||||||
set timefmt '%Y-%m-%d_%H:%M:%S'
|
set timefmt '%Y-%m-%d_%H:%M:%S'
|
||||||
set noytics
|
set noytics
|
||||||
@ -252,10 +253,7 @@ if ($gnuplottype=='piri' or $gnuplottype=='fs20')
|
|||||||
$im2 = imagecreatefrompng("$AbsolutPath/tmp/$gnuplotpng");
|
$im2 = imagecreatefrompng("$AbsolutPath/tmp/$gnuplotpng");
|
||||||
$w2 = imagesx($im2);
|
$w2 = imagesx($im2);
|
||||||
$h2 = imagesy($im2);
|
$h2 = imagesy($im2);
|
||||||
#Old Gnuplot
|
ImageCopy($im,$im2,163,10,0,0,$w2,$h2);
|
||||||
#ImageCopy($im,$im2,163,0,0,10,$w2-20,$h2);
|
|
||||||
#New Gnuplot
|
|
||||||
ImageCopy($im,$im2,163,0,10,420,$w2-20,50);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user