pyvista.ImageMandelbrotSource

pyvista.ImageMandelbrotSource#

class ImageMandelbrotSource(whole_extent=None, maxiter=None)[source]#

Create an image of the Mandelbrot set.

Added in version 0.44.0.

Parameters:
whole_extentsequence[int]

The extent of the whole output image.

maxiterint

The maximum number of iterations.

Examples

Create an image of the Mandelbrot set.

>>> import pyvista as pv
>>> source = pv.ImageMandelbrotSource(
...     whole_extent=(0, 200, 0, 200, 0, 0),
...     maxiter=100,
... )
>>> source.output.plot(cpos="xy")
../../../_images/pyvista-ImageMandelbrotSource-1_00_00.png

Methods

Attributes

ImageMandelbrotSource.maxiter

Get the maximum number of iterations.

ImageMandelbrotSource.output

Get the output image as a ImageData.

ImageMandelbrotSource.whole_extent

Get extent of the whole output image.