source:
trunk/xgraph/jpgraph/Examples/manscaleex2.php
@
45
Last change on this file since 45 was 42, checked in by , 10 years ago | |
---|---|
File size: 431 bytes |
Rev | Line | |
---|---|---|
[42] | 1 | <?php // content="text/plain; charset=utf-8" |
2 | require_once ('jpgraph/jpgraph.php'); | |
3 | require_once ('jpgraph/jpgraph_line.php'); | |
4 | ||
5 | $ydata = array(12,17,22,19,5,15); | |
6 | ||
7 | $graph = new Graph(220,170); | |
8 | $graph->SetScale("textlin",3,35); | |
9 | ||
10 | $graph->title->Set('Manual scale, exact limits'); | |
11 | $graph->title->SetFont(FF_FONT1,FS_BOLD); | |
12 | ||
13 | $line = new LinePlot($ydata); | |
14 | $graph->Add($line); | |
15 | ||
16 | // Output graph | |
17 | $graph->Stroke(); | |
18 | ||
19 | ?> | |
20 | ||
21 |
Note: See TracBrowser
for help on using the repository browser.