SetDrawBrokenLines

SetDrawBrokenLines — Sets whether lines should be broken at missing data

Synopsis

$plot->SetDrawBrokenLines($bl)
    

Description

SetDrawBrokenLines determines how to plot lines with missing data points (that is, missing Y values). By default, PHPlot will act as if the point does not exist, connecting the points before and after the missing datum in the usual way. Use SetDrawBrokenLines to leave a gap between the points before and after missing data instead.

This only applies to 'lines' and 'squared' plot types.

Parameters

$bl

True to break the lines at missing Y data points. False to connect the lines around missing data.

Notes

The default is to ignore missing data and connect lines around missing points.

A missing Y value can be represented in the data array by an empty string. (Anything non-numeric works.)