SaveMixIn#
- class sunkit_pyvista.SaveMixIn[source]#
Bases:
objectA mixin class to add savefig used for pytest-mpl figure comparison testing.
Methods Summary
savefig(filename, **kwargs)Save a screenshot of the current figure.
Methods Documentation
- savefig(filename, **kwargs)[source]#
Save a screenshot of the current figure.
This is a wrapper around
pyvista.Plotter.screenshotand was written so we use pytest-mpl’s figure comparison testing.