graphpite
[ class tree: graphpite ] [ index: graphpite ] [ all elements ]
Prev Next

How to use Image_Graph

The Image_Graph Tutorial

Table of Contents

How to use Image_Graph

Before we start getting concrete by code examples here is a little explanation of how Image_Graph works.

The "layer" mode

Image_Graph works by using layers. That is every element you specify in Image_Graph is a layer on another layer (ultimately the Image_Graph is not on another layer but holds the canvas the other layers are drawn on.



1 ...
2 $Plot =& $Plotarea->addPlot(new Image_Graph_Plot_Line());
3 ...


1 $Graph = new Image_Graph(800, 600);
2 $Plotarea =& $Graph->add(new Plotarea());
3 $Plot =& $Plotarea->addPlot(new Image_Graph_Plot_Line(
4 new Image_Graph_Dataset_Random(10, 20, 100))
5 );
6 $Graph->done();

Prev   Next
Creating the Graph

Documentation generated on Wed, 15 Sep 2004 10:29:41 +0200 by phpDocumentor 1.2.3