dyn_shape_plot.py

Functions for plotting the dynamic shapes dependency graph.

openmdao.visualization.dyn_shape_plot.view_dyn_shapes(root, outfile='shape_dep_graph.png', show=True, title=None)[source]

Generate a plot file containing the dynamic shape dependency graph.

Optionally displays the plot.

Parameters
rootsystem or Problem

The top level system or Problem.

outfilestr, optional

The name of the plot file. Defaults to ‘shape_dep_graph.png’.

showbool, optional

If True, display the plot. Defaults to True.

titlestr, optional

Sets the title of the plot.