screenshot

m3sh.vis.screenshot(filename, scale=1.0, window=None)[source]

Save the current framebuffer contents.

Parameters:
  • filename (str) – Name of PNG target file.

  • scale (float, optional) – Scale factor.

  • window (vtkRenderWindow, optional) – Window to grab.

Note

Some display properties (for example the width of mesh edges) are given in screen units (i.e., pixels). This may give some unexpected results when using the scale argument to change the resolution of the saved image.