plopp.graphics.figure1d#

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

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

Deprecated since version v24.04.0.

Parameters:

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

Examples

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

>>> da = pp.data.data1d()
>>> in_node = pp.Node(da)
>>> fig = pp.figure1d(in_node)

Visualize two data arrays on the same figure:

>>> a = pp.data.data1d()
>>> b = 3 * a
>>> a_node = pp.Node(a)
>>> b_node = pp.Node(b)
>>> fig = pp.figure1d(a_node, b_node)

With a customization argument to make the vertical scale logarithmic:

>>> da = pp.data.data1d()
>>> in_node = pp.Node(da)
>>> fig = pp.figure1d(in_node, norm='log')