Error 25121 : Please help

199 views
Skip to first unread message

daniel.koe...@thermo-control.com

unread,
Mar 16, 2013, 12:48:48 PM3/16/13
to jpg...@googlegroups.com
Hello dear group!

I am getting desperately....

For a display of three lineplots I made the array with the respective data inside.

$maxError, $ValuesMes and $minError

print_r show the data nicely.

Array
(
    [0] => 0.6
    [1] => 0.6
    [2] => 0.6
    [3] => 0.6
    [4] => 0.7
    [5] => 0.8
    [6] => 0.9
    [7] => 1.1
    [8] => 1.2
    [9] => 1.3
)
Array ( [0] => 0.5 [1] => 0.1 [2] => 0.4 [3] => 0.2
[4] => 0.2
[5] => 0.2
[6] => 0.2
[7] => 0.2
[8] => 0.2
[9] => 0.2
)
Array ( [0] => -0.6 [1] => -0.6 [2] => -0.6 [3] => -0.6 [4] => -0.7 [5] => -0.8 [6] => -0.9 [7] => -1.1 [8] => -1.2 [9] => -1.3 )


However using this data for a
$lineplot1 = new LinePlot($maxError);

$graph
-> add($lineplot1);

$graph
->stroke();

I get the 25121 error.

Now, if I add manualy

$maxError[]=-2;


I get the image without any lines or points.

What am I doing wrong?  I have copied the varable names to prevent spelling mistakes .. no succsess



Any help is mostly appreciated!

Thank you, Daniel

Shinichi Goh

unread,
Apr 19, 2013, 6:56:17 AM4/19/13
to jpg...@googlegroups.com
Hi Daniel,

First, I would like to confirm your intention of declaring three variables $maxError, $ValuesMes, $minError?

I have tested the following code and got result as in the attached picture:

<?php // content="text/plain; charset=utf-8"
require_once ("jpgraph/jpgraph.php");
require_once ("jpgraph/jpgraph_line.php");
 
$maxError = array(0.6,0.6,0.6,0.6,0.7,0.8,0.9,1.1,1.2,1.3);
$ValuesMes = array(0.5,0.1,0.4,0.2,0.2,0.2,0.2,0.2,0.2,0.2);
$minError = array(-0.6,-0.6,-0.6,-0.6,-0.7,-0.8,-0.9,-1.1,-1.2,-1.3);

// Size of the overall graph
$width=350;
$height=250;
 
// Create the graph and set a scale.
// These two calls are always required
$graph = new Graph($width,$height);
$graph->SetScale('intlin');
 
// Create the linear plot
$lineplot=new LinePlot($maxError);
 
// Add the plot to the graph
$graph->Add($lineplot);
 
// Output graph
$graph->Stroke();
 
?>

 
Reply all
Reply to author
Forward
0 new messages