2.6. Customization

PHPlot can draw these types of plots:

You specify which type of plot you want with the SetPlotType function.

There are many ways we can change the look and feel of the graph. Almost every parameter of the graph, including ticks, grids, and data labels, can be adjusted using PHPlot functions. Here is a list of functions used to customize graphs. Each of these is described in detail in the reference material in PHPlot Function Reference.

Colors, Background, Border:

SetBackgroundColor, SetBgImage, SetDataBorderColors, SetDataColors, SetDrawPlotAreaBackground, SetErrorBarColors, SetGridColor, SetImageBorderColor, SetImageBorderType, SetLightGridColor, SetPlotAreaBgImage, SetPlotBgColor, SetPlotBorderType, SetRGBArray, SetShading, SetTextColor, SetTickColor, SetTitleColor, SetTransparentColor

Point Shapes and Plotted Line Styles:

SetDefaultDashedStyle, SetDrawBrokenLines, SetErrorBarLineWidth, SetErrorBarShape, SetErrorBarSize, SetLineStyles, SetLineWidths, SetPointShapes, SetPointSizes

Fonts and Text:

SetDefaultTTFont, SetFont, SetLineSpacing, SetTTFPath, SetUseTTF

Grids:

SetDrawDashedGrid, SetDrawXGrid, SetDrawYGrid SetGridColor, SetLightGridColor,

Titles and Legend:

SetLegend, SetLegendPixels, SetLegendWorld, SetTitle, SetXTitle, SetYTitle

Tick Marks and Labels:

SetLabelScalePosition, SetNumXTicks, SetNumYTicks, SetSkipBottomTick, SetSkipLeftTick, SetSkipRightTick, SetSkipTopTick, SetXTickCrossing, SetXTickIncrement, SetXTickLabelPos, SetXTickLength, SetXTickPos, SetYTickCrossing, SetYTickIncrement, SetYTickLabelPos, SetYTickLength, SetYTickPos

Axes and Data Labels:

SetDrawXDataLabelLines, SetXAxisPosition, SetPrecisionX, SetPrecisionY, SetXDataLabelPos, SetXLabelAngle, SetXLabelType, SetXScaleType, SetXTimeFormat, SetYAxisPosition, SetYDataLabelPos, SetYLabelAngle, SetYLabelType, SetYScaleType, SetYTimeFormat

Margins and Scaling:

SetMarginsPixels, SetPlotAreaPixels, SetPlotAreaWorld