scipp.show_graph#
- scipp.show_graph(graph, size=None, simplified=False)#
Show graphical representation of a graph as required by
transform_coords()
Requires the python-graphviz package.
- Parameters:
graph (
dict
[str
|tuple
[str
,...
],str
|Callable
[...
,Variable
]]) – Transformation graph to show.size (
Optional
[str
], default:None
) – Size forwarded to graphviz, must be a string, “width,height” or “size”. In the latter case, the same value is used for both width and height.simplified (
bool
, default:False
) – IfTrue
, do not show the conversion functions, only the potential input and output coordinates.
- Returns:
graph (
graphviz.Digraph
) – Can be displayed directly in Jupyter. See the documentation for details.- Raises:
RuntimeError – If graphviz is not installed.