plopp.graphics.figure2d#

plopp.graphics.figure2d(*args, style='image', **kwargs)[source]#

Create a figure to represent two-dimensional data from a graph node. By default, this will return a figure built from ImageView (see the documentation of this class for a list of available customization arguments).

Deprecated since version v24.04.0.

Parameters:

style (Literal['image'], default: 'image') – The type of figure to create.

Examples

Create an input node and attach a figure2d as a view:

>>> da = pp.data.data2d()
>>> in_node = pp.Node(da)
>>> fig = pp.figure2d(in_node)

With a customization argument to make the color scale logarithmic:

>>> da = pp.data.data2d()
>>> in_node = pp.Node(da)
>>> fig = pp.figure2d(in_node, norm='log')