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[Union[str, Tuple[str, ...]], Union[str, Callable]]) – 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) – If True, 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.