PHPlot Function Reference


This part of the PHPlot Reference Manual contains the reference information for the PHPlot functions. Note that all the functions (except the class constructor) are implemented as methods of the class PHPlot, and are therefore called through an object which is an instance of the class. In this text, $plot is used to represent an instance of the PHPlot class.

Table of Contents

DrawGraph — Draw the current graph onto the image
DrawMessage — Draw a text message on the image, discarding the plot
EncodeImage — Returns the plot image data
EndStream — End a Motion-JPEG (or other type) plot stream
GetCallback — Returns the current callback function registered for the given reason
GetDeviceXY — Translate world coordinates into device coordinates
GetLegendSize — Return the amount of space required for the legend box
PHPlot — Construct a new PHPlot Class Object
PHPlot_truecolor — Construct a new PHPlot Truecolor Class Object
PrintImage — Output the generated graph image and clean up the internal storage space.
PrintImageFrame — Output the generated plot as one frame in a plot stream
RemoveCallback — Unregisters any callback registered for the given reason
SetBackgroundColor — Sets the overall background color.
SetBgImage — Set a graphic file to be used in the graph background
SetBrowserCache — Control browser-side image caching
SetCallback — Registers a callback function
SetDataBorderColors — Set the data border colors
SetDataColors — Set the colors for plotting data sets
SetDataLabelColor — Set the color for data labels
SetDataType — Indicate the format of the data array
SetDataValueLabelColor — Set the color for data value labels
SetDataValues — Set the data array for plotting
SetDefaultDashedStyle — Sets the on/off pattern for dashed lines.
SetDefaultTTFont — Set the default TrueType font
SetDrawBrokenLines — Sets whether lines should be broken at missing data
SetDrawDashedGrid — Use solid or dashed lines for the grid
SetDrawDataBorders — Enable or disable drawing of data borders
SetDrawPieBorders — Enable or disable drawing of pie chart segment borders
SetDrawPlotAreaBackground — Enables drawing of a plot area background color
SetDrawXAxis — Enable or disable drawing of the X axis line
SetDrawXDataLabelLines — Draw data label lines for vertical plots
SetDrawXGrid — Whether or not to draw the X grid lines
SetDrawYAxis — Enable or disable drawing of the Y axis line
SetDrawYDataLabelLines — Draw data label lines for horizontal plots
SetDrawYGrid — Whether or not to draw the Y grid lines
SetErrorBarColors — Sets the colors used for data error bars
SetErrorBarLineWidth — Set the line width used for error bars
SetErrorBarShape — Select line or tee-style error bars
SetErrorBarSize — Set the size of the error bar tee.
SetFailureImage — Enable or disable error image production on failure
SetFileFormat — Select the graphic image format generated by PHPlot
SetFont — Select which font to use for a plot element
SetFontGD — Select a GD font to use for a plot element
SetFontTTF — Select a TrueType font to use for a plot element
SetGridColor — Set the color used for the axes and borders
SetImageBorderColor — Set image border color, if enabled
SetImageBorderType — Draw a border around the image
SetImageBorderWidth — Set the width for the image border
SetIsInline — Set the output image to be inline - without HTTP headers
SetLabelScalePosition — Position pie-chart labels
SetLegend — Add text to a legend box
SetLegendBgColor — Set legend background color
SetLegendColorboxBorders — Control the borders around color boxes in the legend
SetLegendPixels — Position the legend on the image (device coordinates)
SetLegendPosition — Position the legend
SetLegendReverse — Control the order of text lines in the legend
SetLegendStyle — Control the appearance of the legend
SetLegendTextColor — Set legend text color
SetLegendUseShapes — Use color boxes or shape markers in the legend
SetLegendWorld — Position the legend on the image (world coordinates)
SetLightGridColor — Set the color for grid lines and data label lines
SetLineSpacing — Set spacing between lines of multi-line text elements
SetLineStyles — Set the line style (solid or dashed) for each data set
SetLineWidths — Set line width (thickness) for each data set
SetMarginsPixels — Set margins around the plot area
SetNumberFormat — Set the separators used when formatting number labels
SetNumXTicks — Set the number of X tick intervals
SetNumYTicks — Set the number of Y tick intervals
SetOutputFile — Redirect PHPlot output to a file
SetPieAutoSize — Enable or disable automatic pie chart size calculation
SetPieBorderColor — Set the color for pie chart segment borders
SetPieDirection — Set the direction for pie chart segments
SetPieLabelColor — Set the color for pie chart data labels
SetPieLabelType — Set type and format for pie chart labels
SetPieStartAngle — Set the starting angle for pie chart segments
SetPlotAreaBgImage — Set a graphic file to be used in the plot area background
SetPlotAreaPixels — Set the limits for the plot area in device coordinates
SetPlotAreaWorld — Override automatic data scaling to device coordinates
SetPlotBgColor — Set plot area background color
SetPlotBorderType — Control how much of a border is drawn around the plot
SetPlotType — Select the type of plot - how the data will be graphed
SetPointShapes — Select a point shape for each data set
SetPointSizes — Sets the point size for each data set
SetPrecisionX — Set precision for numeric formated X labels
SetPrecisionY — Set precision for numeric formated Y labels
SetPrintImage — Determine whether or not to automatically output the image when the plot is drawn
SetRGBArray — Select a color map
SetShading — Set the size of the drop shadow for bar and pie charts.
SetSkipBottomTick — Suppress the bottom Y axis tick mark and label
SetSkipLeftTick — Suppress the first X axis tick mark and label
SetSkipRightTick — Suppress the last X axis tick mark and label
SetSkipTopTick — Suppress the top Y axis tick mark and label
SetTextColor — Set general text color
SetTickColor — Set the color of the axis tick marks
SetTickLabelColor — Set the color for tick labels
SetTitle — Set the main title text for the plot
SetTitleColor — Set the color of the main plot title
SetTransparentColor — Designate one color to be transparent
SetTTFPath — Set the default TrueType font directory
SetUseTTF — Set the default font type
SetXAxisPosition — Move the X axis
SetXDataLabelAngle — Set the text angle for X data labels
SetXDataLabelPos — Position and control X data labels
SetXDataLabelType — Set formatting type for X data labels
SetXLabelAngle — Set the text angle for X labels
SetXLabelType — Set formatting type for X tick labels
SetXScaleType — Select linear or logarithmic scale
SetXTickAnchor — Set an anchor point for X tick marks
SetXTickCrossing — Set crossing length of X tick marks
SetXTickIncrement — Set the length of the interval between X ticks
SetXTickLabelPos — Position the X tick labels
SetXTickLength — Set outer length of X tick marks
SetXTickPos — Position the X tick marks
SetXTimeFormat — Set date/time formatting string for X labels
SetXTitle — Sets the X axis title, and optionally its position
SetXTitleColor — Set the color of the X Title
SetYAxisPosition — Move the Y axis
SetYDataLabelAngle — Set the text angle for Y data labels
SetYDataLabelPos — Position and control Y data labels
SetYDataLabelType — Set formatting type for Y data labels
SetYLabelAngle — Set the text angle for Y tick labels
SetYLabelType — Set formatting type for Y tick labels
SetYScaleType — Select linear or logarithmic scale
SetYTickAnchor — Set an anchor point for Y tick marks
SetYTickCrossing — Set crossing length of Y tick marks
SetYTickIncrement — Set the length of the interval between Y ticks
SetYTickLabelPos — Position the Y tick labels
SetYTickLength — Set outer length of Y tick marks
SetYTickPos — Position the Y tick marks
SetYTimeFormat — Set date/time formatting string for Y labels
SetYTitle — Sets the Y axis title, and optionally its position
SetYTitleColor — Set the color of the Y Title
StartStream — Begin a Motion-JPEG (or other type) plot stream
TuneXAutoRange — Adjust tuning parameters for X axis range calculation
TuneYAutoRange — Adjust tuning parameters for Y axis range calculation
TuneXAutoTicks — Adjust tuning parameters for X axis tick increment calculation
TuneYAutoTicks — Adjust tuning parameters for Y axis tick increment calculation
SourceForge.net Logo

This version of the manual was produced for the PHPlot Sourceforge project web service site, which requires the logo on each page.

To download a logo-free copy of the manual, see the PHPlot project downloads area.