ironflow.nodes.plot module

class ironflow.nodes.plot.Matplot_Node(params)[source]

Bases: Node

A 2D matplotlib plot.

Inputs:

x (list | numpy.ndarray): Data for the x-axis. y (list | numpy.ndarray): Data for the y-axis. fig (Figure | None): The figure to plot to. marker (matplotlib marker choice | None): Marker style. linestyle (matplotlib linestyle choice | None): Line style. color (str): HTML or hex color name. alpha (float): Transparency. label (str | None): Legend. xlabel (str | None): X-axis label. ylabel (str | None): Y-axis label. title (str | None): Figure title. legend (bool): Whether to add the legend. tight_layout (bool): Call matplotlib tight_layout command.

Outputs:

fig (matplotlib.figure.Figure): The resulting figure after a matplotlib.pyplot.plot call on x and y.

color = '#5d95de'
static deepcopy_matplot(fig: Figure) tuple[Figure, Axes][source]
init_inputs: List[NodeInputBP] = [<ironflow.model.port.NodeInputBP object>, <ironflow.model.port.NodeInputBP object>, <ironflow.model.port.NodeInputBP object>, <ironflow.model.port.NodeInputBP object>, <ironflow.model.port.NodeInputBP object>, <ironflow.model.port.NodeInputBP object>, <ironflow.model.port.NodeInputBP object>, <ironflow.model.port.NodeInputBP object>, <ironflow.model.port.NodeInputBP object>, <ironflow.model.port.NodeInputBP object>, <ironflow.model.port.NodeInputBP object>, <ironflow.model.port.NodeInputBP object>, <ironflow.model.port.NodeInputBP object>]
init_outputs: List[NodeOutputBP] = [<ironflow.model.port.NodeOutputBP object>]
title = 'MatPlot'
update_event(inp=-1)[source]

Gets called when an input received a signal or some node requested data of an output in exec mode

version: str = 'v0.1'
class ironflow.nodes.plot.Plot3d_Node(params)[source]

Bases: Node

Plot a structure with NGLView.

Inputs:

structure (pyiron_atomistics.Atoms): The structure to plot.

Outputs:

plot3d (nglview.widget.NGLWidget): The plot object. structure (pyiron_atomistics.Atoms): The raw structure object passed in.

color = '#5d95de'
init_inputs: List[NodeInputBP] = [<ironflow.model.port.NodeInputBP object>]
init_outputs: List[NodeOutputBP] = [<ironflow.model.port.NodeOutputBP object>, <ironflow.model.port.NodeOutputBP object>]
title = 'Plot3d'
update_event(inp=-1)[source]

Gets called when an input received a signal or some node requested data of an output in exec mode

version: str = 'v0.1'
class ironflow.nodes.plot.QuickPlot_Node(params)[source]

Bases: Node

Make a variety of quick and dirty plots with Seaborn.

color = '#5d95de'
init_inputs: List[NodeInputBP] = [<ironflow.model.port.NodeInputBP object>, <ironflow.model.port.NodeInputBP object>, <ironflow.model.port.NodeInputBP object>]
init_outputs: List[NodeOutputBP] = [<ironflow.model.port.NodeOutputBP object>]
title = 'QuickPlot'
update_event(inp=-1)[source]

Gets called when an input received a signal or some node requested data of an output in exec mode