pyvista.ImageSinusoidSource#
- class ImageSinusoidSource(*args, **kwargs)[source]#
Create an image of a sinusoid.
Added in version 0.44.0.
- Parameters:
Examples
Create an image of a sinusoid.
>>> import pyvista as pv >>> source = pv.ImageSinusoidSource( ... whole_extent=(0, 200, 0, 200, 0, 0), ... period=20.0, ... phase=0.0, ... amplitude=255, ... direction=(1.0, 0.0, 0.0), ... ) >>> source.output.plot(cpos='xy')
Methods#
Attributes#
Get the magnitude of the sinusoid. |
|
Get the direction of the sinusoid. |
|
Get the output image as a ImageData. |
|
Get the period of the sinusoid. |
|
Get the phase of the sinusoid. |
|
Get extent of the whole output image. |