plot_layer#
- class brainpy.state.spatial.plot_layer(layer, fig=None, nodecolor='b', nodesize=20)[source]#
Scatter a layer’s node positions (NEST
PlotLayer).- Parameters:
- Returns:
The figure drawn on.
- Return type:
matplotlib.figure.Figure
Examples
>>> from brainpy import state as bp >>> fig = bp.spatial.plot_layer(bp.spatial.grid([10, 10]))