pyvista.Plotter.window_size#

property Plotter.window_size[source]#

Return the render window size in (width, height).

Examples

Change the window size from 200 x 200 to 400 x 400.

>>> import pyvista
>>> pl = pyvista.Plotter(window_size=[200, 200])
>>> pl.window_size
[200, 200]
>>> pl.window_size = [400, 400]
>>> pl.window_size
[400, 400]
https://d33wubrfki0l68.cloudfront.net/dc6025cc35effa837b4dfb901cbb410f2a97800a/c0f84/_images/pyvista-plotter-window_size-1_00_00.png