SetLineWidths
Prev | PHPlot Function Reference | Next

## SetLineWidths

SetLineWidths — Set line width (thickness) for each data set

## Synopsis

    $plot->SetLineWidths($lw)

## Description

`SetLineWidths` sets the desired line width to be used when plotting each data set.

## Parameters

`$lw`

  An array of line widths in pixels, one for each data set to be plotted. Or, a single value to be used for all data sets.

## Notes

If an array is used for `$lw`, it must use zero-based sequential integer indexes.

The plot types that support using different line widths for the data sets being plotted are: lines, linepoints, squared, and thinbarline. In addition, you can use `SetLineWidths` with some other plot types which support only a single data set but use multiple line widths in a plot-specific way: boxes, candlesticks, candlesticks2, and ohlc. Line widths do not apply to all other plot types.

By default, all data set plot lines are 1 pixel wide.

Prev | Up | Next
SetLineStyles | Home | SetMarginsPixels