vispy.visuals.graphs.layouts package

Submodules

Module contents

vispy.visuals.graphs.layouts.get_layout(name, *args, **kwargs)

Retrieve a graph layout

Some graph layouts accept extra options. Please refer to their documentation for more information.

Parameters
namestring

The name of the layout. The variable AVAILABLE_LAYOUTS contains all available layouts.

*args

Positional arguments which are passed to the layout.

**kwargs

Keyword arguments which are passed to the layout.

Returns
layoutcallable

The callable generator which will calculate the graph layout