PlotMark |
Hide() SetCallback() SetColor() SetDefaultWidth() SetFillColor() SetSize() SetType() SetWeight() SetWidth() Show() |
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:
Argument | Default | Description |
---|---|---|
$aHide | true | True=Hide plot mark |
Example
Argument | Default | Description |
---|---|---|
$aFunc | Function name |
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
Argument | Default | Description |
---|---|---|
$aColor | Color |
Example
Example
Argument | Default | Description |
---|---|---|
$aFillColor | Color |
Example
Argument | Default | Description |
---|---|---|
$aWidth | WIdth of mark in pixels |
Example
Argument | Default | Description |
---|---|---|
$aType | Type of plotmark, shape or built-in image | |
$aFilename | Filename for IMAGE plot marks OR color when aType specifies a built-in image | |
$aScale | Scaling of image |
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:
Type | Description | Colors |
---|---|---|
MARK_IMG_PUSHPIN, MARK_IMG_SPUSHPIN | Push-pin image | 'red','blue','green','pink','orange' |
MARK_IMG_LPUSHPIN | A larger Push-pin image | 'red','blue','green','pink','orange' |
MARK_IMG_BALL, MARK_IMAGE_SBALL | A round 3D rendered ball | 'bluegreen','cyan','darkgray','greengray', 'gray','graypurple','green','greenblue','lightblue', 'lightred','navy','orange','purple','red','yellow' |
MARK_IMAGE_MBALL | A medium sized round 3D rendered ball | 'blue','bluegreen','brown','cyan', 'darkgray','greengray','gray','green', 'greenblue','lightblue','lightred', 'purple','red','white','yellow' |
MARK_IMAGE_LBALL | A large sized round 3D rendered ball | 'blue','lightblue','brown','darkgreen', 'green','purple','red','gray','yellow','silver','gray' |
MARK_IMAGE_SQUARE | A 3D rendered square | 'bluegreen','blue','green', 'lightblue','orange','purple','red','yellow' |
MARK_IMG_STAR | A 3D rendered star image | 'bluegreen','lightblue','purple','blue','green','pink','red','yellow' |
MARK_IMG_DIAMOND | A 3D rendered diamond | 'lightblue','darkblue','gray', 'blue','pink','purple','red','yellow' |
MARK_IMG_BEVEL | A 3D rendered bevel style round ring | 'green','purple','orange','red','yellow' |
Example
Argument | Default | Description |
---|---|---|
$aWeight | Line weight |
Example
Argument | Default | Description |
---|---|---|
$aWidth | Width in pixels |
Example
Argument | Default | Description |
---|---|---|
$aShow | true | True=Show plot marks |
Example