plopp.graphics.linefigure#
- plopp.graphics.linefigure(*args, **kwargs)[source]#
Create a figure to represent one-dimensional data from one or more graph node(s). :rtype:
FigureLike
New in version 24.04.0.
Examples
Create an input node and attach a
linefigure
as a view:>>> da = pp.data.data1d() >>> in_node = pp.Node(da) >>> fig = pp.linefigure(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.linefigure(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.linefigure(in_node, norm='log')