<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Discussion</title><link>https://sourceforge.net/p/phplot/discussion/</link><description>Recent posts to Discussion</description><atom:link href="https://sourceforge.net/p/phplot/discussion/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 25 Jan 2026 17:13:00 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/phplot/discussion/feed.rss" rel="self" type="application/rss+xml"/><item><title>Color Change on value threshold</title><link>https://sourceforge.net/p/phplot/discussion/46382/thread/6d3442f5/?limit=25#49a8</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Gotit - I want to do the same thing.  A graph of temperature  in my greenhouse.  At 55F a space heater turns on and I want to have temperature line to be green when above 55F and red below 55F.  &lt;br/&gt;
+--------+--------------+------+-----+---------+----------------+&lt;br/&gt;
| Field  | Type         | Null | Key | Default | Extra          |&lt;br/&gt;
+--------+--------------+------+-----+---------+----------------+&lt;br/&gt;
| id     | mediumint(9) | NO   | PRI | NULL    | auto_increment |&lt;br/&gt;
| ts     | timestamp    | YES  |     | NULL    |                |&lt;br/&gt;
| ghtemp | float(4,1)   | YES  |     | NULL    |                |&lt;br/&gt;
| ghhumd | float(4,1)   | YES  |     | NULL    |                |&lt;br/&gt;
| ghsump | float(4,1)   | YES  |     | NULL    |                |&lt;br/&gt;
| ostemp | float(4,1)   | YES  |     | NULL    |                |&lt;br/&gt;
| oshumd | float(4,1)   | YES  |     | NULL    |                |&lt;br/&gt;
| misc   | int(11)      | YES  |     | NULL    |                |&lt;br/&gt;
+--------+--------------+------+-----+---------+----------------+&lt;/p&gt;
&lt;p&gt;"misc" will be 00000 heat off, 00001 heat on.  Plot create needs  $plot&amp;gt;SetDrawBrokenLines(TRUE);&lt;br/&gt;
 which allows for the line to "-------     -----------" where data&lt;span&gt;[8]&lt;/span&gt; thru data&lt;span&gt;[14]&lt;/span&gt; is NULL. (an aside)&lt;/p&gt;
&lt;p&gt;For testing because it's 4 deg outside right now I used $data&lt;span&gt;[$n]&lt;/span&gt; to make it work.&lt;/p&gt;
&lt;p&gt;In the mysql while fetch_row&lt;/p&gt;
&lt;p&gt;if ($n &amp;gt; 100 &amp;amp;&amp;amp; $n &amp;lt; 200)&lt;br/&gt;
   {&lt;br/&gt;
     $data[] =  array($h, $row&lt;span&gt;[2]&lt;/span&gt;, $row&lt;span&gt;[3]&lt;/span&gt;, $s, $row&lt;span&gt;[5]&lt;/span&gt;, $row&lt;span&gt;[6]&lt;/span&gt;, 32, $row&lt;span&gt;[2]&lt;/span&gt;);&lt;br/&gt;
   } else {&lt;br/&gt;
     $data[] =  array($h, $row&lt;span&gt;[2]&lt;/span&gt;, $row&lt;span&gt;[3]&lt;/span&gt;, $s, $row&lt;span&gt;[5]&lt;/span&gt;, $row&lt;span&gt;[6]&lt;/span&gt;, 32, NULL);&lt;br/&gt;
   }&lt;/p&gt;
&lt;p&gt;and   $plot-&amp;gt;SetDataColors(array( 'DarkGreen', 'blue', 'brown', 'YellowGreen', '#aaaaaa', 'black', 'green', 'red'));&lt;br/&gt;
and my graph is:&lt;br/&gt;
gggggggggggggggggggggrrrrrrrrrrrrrrrrrrrrrrrrrgggggggggggggg            gggggggggggggg&lt;br/&gt;
the blank part is where I updated the temp to NULL.&lt;/p&gt;
&lt;p&gt;and Who's on First&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">chuck lidderdale</dc:creator><pubDate>Sun, 25 Jan 2026 17:13:00 -0000</pubDate><guid>https://sourceforge.net19919ae721c39e354a3f27a84868cd2f1f03c894</guid></item><item><title>php 8.0.2 </title><link>https://sourceforge.net/p/phplot/discussion/46382/thread/aff1d27b03/?limit=25#7033</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi - I've moved PHPLOT development to &lt;a href="https://github.com/ajRepo/phplot" rel="nofollow"&gt;https://github.com/ajRepo/phplot&lt;/a&gt; . &lt;/p&gt;
&lt;p&gt;Can you open support requests there instead? &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Afan Ottenheimer</dc:creator><pubDate>Wed, 10 Nov 2021 22:30:05 -0000</pubDate><guid>https://sourceforge.neta586170213afdbfab36d8cc6fb6d36363b83bf24</guid></item><item><title>php 8.0.2 </title><link>https://sourceforge.net/p/phplot/discussion/46382/thread/aff1d27b03/?limit=25#609b</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, &lt;br/&gt;
support phplot release-6.2.0 PHP8?&lt;br/&gt;
Currently I am using release-6.2.0 with PHP7.4.&lt;br/&gt;
Thank you very much for your efforts.&lt;br/&gt;
Greetings Michael&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Keusch</dc:creator><pubDate>Tue, 09 Nov 2021 13:26:48 -0000</pubDate><guid>https://sourceforge.net3deac87b30b70e05b4220e93dbb791417edcd767</guid></item><item><title>includes or requires break image?</title><link>https://sourceforge.net/p/phplot/discussion/46382/thread/f37ca5e835/?limit=25#82af</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;If you get the "image contains errors" error on your browser, it usually means there is text in what's returned in addition to the binary data that defines the image. So perhaps your dbc.php has some HTML header information that it is returning or the like. To tell - look at the raw data being returned for the image and see. &lt;/p&gt;
&lt;p&gt;Also - I've moved development to git via github ( &lt;a href="https://github.com/AJRepo/PHPlot/" rel="nofollow"&gt;https://github.com/AJRepo/PHPlot/&lt;/a&gt; )  from Sourceforge. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Afan Ottenheimer</dc:creator><pubDate>Fri, 04 Jun 2021 13:58:52 -0000</pubDate><guid>https://sourceforge.net481468926a5d879acc46e0233df54beb951cf3e6</guid></item><item><title>includes or requires break image?</title><link>https://sourceforge.net/p/phplot/discussion/46382/thread/f37ca5e835/?limit=25#9907</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;every other php file on my site uses:&lt;/p&gt;
&lt;p&gt;include dbc.php;&lt;/p&gt;
&lt;p&gt;WHY does this break phplot?  i have to get the actual sql connection line out of this file and put it in my graph.php manually, or i get the "image contains errors" every time. &lt;/p&gt;
&lt;p&gt;what am i doing wrong here?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">atn</dc:creator><pubDate>Fri, 04 Jun 2021 05:11:14 -0000</pubDate><guid>https://sourceforge.net27a9737d3bd8f94052cecd2c0b6f127f87601336</guid></item><item><title>php 8.0.2 </title><link>https://sourceforge.net/p/phplot/discussion/46382/thread/aff1d27b03/?limit=25#30a7/a7af</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I checked the php.ini file and the extension gd was commented out. Changed it and restarted and my graphs are now working. I would never have thought of that.&lt;/p&gt;
&lt;p&gt;Thanks for the help!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ted Lorenz</dc:creator><pubDate>Sat, 20 Feb 2021 19:17:46 -0000</pubDate><guid>https://sourceforge.netb41325f0293096e193d0ea85461ca1b7fd2ccf70</guid></item><item><title>php 8.0.2 </title><link>https://sourceforge.net/p/phplot/discussion/46382/thread/aff1d27b03/?limit=25#30a7</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Is gd installed? &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Afan Ottenheimer</dc:creator><pubDate>Sat, 20 Feb 2021 04:15:16 -0000</pubDate><guid>https://sourceforge.net3ff1bcd97a7f9725c878639745ca68831e380ea9</guid></item><item><title>php 8.0.2 </title><link>https://sourceforge.net/p/phplot/discussion/46382/thread/aff1d27b03/?limit=25#2ba4</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I just updated xampp to the latest version which include PHP 8.0.2. When I tried to run my line graph i didn't get the graph. When I tried it in a command line I got the following error below. I reloaded xampp that has php 7 and reissued the same command line the output.png was perfect.   &lt;/p&gt;
&lt;p&gt;I'm not sure why the failure. Has anyone encountered this problem and is there a work around or fix?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;C:\xampp\htdocs\TS2&amp;gt;php myscript.php &amp;gt; output.png&lt;br/&gt;
PHP Fatal error:  Uncaught TypeError: call_user_func(): Argument #1 ($function) must be a valid callback, function "imagecreate" not found or invalid function name in C:\xampp\htdocs\TS2\phplot-6.2.0\phplot.php:684&lt;br/&gt;
Stack trace:&lt;/p&gt;
&lt;h1 id="0-cxampphtdocsts2phplot-620phplotphp659-phplot-initializeimagecreate-800-600-null-null"&gt;0 C:\xampp\htdocs\TS2\phplot-6.2.0\phplot.php(659): PHPlot-&amp;gt;initialize('imagecreate', 800, 600, NULL, NULL)&lt;/h1&gt;
&lt;h1 id="1-cxampphtdocsts2myscriptphp16-phplot-__construct800-600"&gt;1 C:\xampp\htdocs\TS2\myscript.php(16): PHPlot-&amp;gt;__construct(800, 600)&lt;/h1&gt;
&lt;h1 id="2"&gt;2&lt;/h1&gt;
&lt;p&gt;thrown in C:\xampp\htdocs\TS2\phplot-6.2.0\phplot.php on line 684&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ted Lorenz</dc:creator><pubDate>Fri, 19 Feb 2021 23:38:35 -0000</pubDate><guid>https://sourceforge.net845f7e251bd604a4c5f3147a1424533d173474eb</guid></item><item><title>RasPi data/nodata</title><link>https://sourceforge.net/p/phplot/discussion/46382/thread/53e62cf964/?limit=25#477b</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Problem solved - seems the latested RasPi Buster comes with Mysql pre-installed and when you do the LAMP install as seen on the the web - FUBAR!.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">chuck lidderdale</dc:creator><pubDate>Mon, 04 May 2020 13:19:35 -0000</pubDate><guid>https://sourceforge.netce347f75231b305767e041a49c5db5ba6b8d422e</guid></item><item><title>RasPi data/nodata</title><link>https://sourceforge.net/p/phplot/discussion/46382/thread/53e62cf964/?limit=25#61b0</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Pre:  a curl script collect information on my heating/cooling system and inserts into a mysql DB.&lt;/p&gt;
&lt;p&gt;A Phplot web script on a Fedora box runs fine.  Copied to a new Raspberry Pi - when run as a web app says  "DrawGraph(): No data array".  But if I run from the cmd line "php furnace.php &amp;gt; furn.png" and then http localhost/furn.png I get a perfect graph.    Testing indicates that $data doesen't grow under apache.  phpinfo() GD look the same as the Fedora box.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;include phplot.php&lt;br/&gt;
mysql_connect&lt;br/&gt;
select a, b, c, d from furnace  ( about 1100  data rows )&lt;br/&gt;
while ($a2 = mysqli_fetch_row&lt;br/&gt;
$data[] = $a2;&lt;/p&gt;
&lt;p&gt;$plot = new...&lt;br/&gt;
$plot-&amp;gt;SetDataValues($data);&lt;br/&gt;
$plot-&amp;gt;DrawGraph();&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;Am I missing something in apache config?  Thanks for any help.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">chuck lidderdale</dc:creator><pubDate>Sat, 02 May 2020 15:53:02 -0000</pubDate><guid>https://sourceforge.neta0b5f875470a5ca2aead65510fd258b8fc898ead</guid></item></channel></rss>