plot_sources#
- class brainpy.state.spatial.plot_sources(sim, source, tgt_node, fig=None, src_color='b', src_size=20, tgt_color='red', tgt_size=50)[source]#
Highlight one target node’s realized sources (NEST
PlotSources).- Parameters:
sim (
Simulator) – The simulator holding the realized connections.source (
NodeView) – The candidate-source population (created withpositions=).tgt_node (
NodeView) – The target node whose sources are drawn.fig (
matplotlib.figure.Figure, optional) – Existing figure to draw on.src_color (
color, optional) – Marker colours for the sources and the target node.tgt_color (
color, optional) – Marker colours for the sources and the target node.src_size (
float, optional) – Marker sizes for the sources and the target node.tgt_size (
float, optional) – Marker sizes for the sources and the target node.
- Returns:
The figure drawn on.
- Return type:
matplotlib.figure.Figure