Rotates the layout of the plot among the several NetworkX layout classes ('spring'
, 'circular'
, 'kamada_kawai'
, 'random'
, 'shell'
, 'spectral'
, and 'spiral'
) if a network corresponding to AgentsPlot.network
exists, plus 'spatial'
if model.patches
exists, and 'scatter'
if AgentsPlot.scatter
exists. This function is called when pressing ‘l’ with the mouse over the plot. See the NetworkX documentation for details on each of these.
History
- 1.6Skips the NetworkX layouts if no network exists.
Notes and Examples