SetPrintImage
Prev | PHPlot Function Reference | Next

## SetPrintImage

SetPrintImage — Determine whether or not to automatically output the image when the plot is drawn

## Synopsis

    $plot->SetPrintImage($pi)

## Description

`SetPrintImage` determines whether or not to automatically output the image (as if PrintImage was used) when a plot is drawn (with DrawGraph). The default is True.

## Parameters

`$pi`

  True to have DrawGraph automatically print (output) the image, False to prevent DrawGraph from outputting the image.

## Notes

When putting multiple plots on one image, is is necessary to use `SetPrintImage(False)` to defer output of the image until after all the plots have been drawn. See Section 4.8, “Multiple Plots Per Image” for more information on putting multiple plots on an image.

Calling `SetPrintImage(False)` is also needed when using EncodeImage to return the image data (rather than sending it to standard output or to a file).

Prev | Up | Next
SetPrecisionY | Home | SetRGBArray