SetPrecisionY
Prev | PHPlot Function Reference | Next

## SetPrecisionY

SetPrecisionY — Set precision for numeric formated Y tick labels

## Synopsis

    $plot->SetPrecisionY($prec)

## Description

`SetPrecisionY` sets the desired numeric precision for Y tick and data labels, and also enables 'data' mode formatting of those labels with SetYLabelType.

## Parameters

`$prec`

  The desired numeric precision. This is the number of decimal positions to output.

## Notes

Setting numeric precision with this function automatically enables 'data' mode formatting as if `SetYLabelType('data')` was called.

The default is to format numbers with 1 decimal position, but only if 'data' mode formatting is selected.

This function applies to Y tick labels, and also to the Y data labels available with bar charts and stacked bar charts.

## History

Starting with PHPlot-5.0.6, using `SetPrecisionY($n)` is exactly the same as calling `SetYLabelType('data', $n)`.

Prev | Up | Next
SetPrecisionX | Home | SetPrintImage