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