Plotter.image#
- property Plotter.image: NumpyArray[np.uint8][source]#
Return an image array of current render window.
Changed in version 0.50: A
RuntimeErroris raised instead of anAttributeErrorwhen the plotter has not been rendered.- Returns:
numpy.ndarrayImage array of current render window.
Examples#
Download Python source code | Download Jupyter notebook
>>> import pyvista as pv
>>> pl = pv.Plotter(off_screen=True)
>>> _ = pl.add_mesh(pv.Cube())
>>> pl.show()
>>> pl.image
Used In#
Gallery Examples