NNSOM.plots.SOMPlots.plt_top_num
- SOMPlots.plt_top_num(mouse_click=False, connect_pick_event=True, **kwargs)[source]
Plots the topology of the SOM with each neuron numbered. This method visualizes each neuron as a hexagon with a number indicating its index, which is useful for identifying and referencing specific neurons during analysis.
- Parameters:
mouse_click (bool, optional) – If True, enables the plot to respond to mouse clicks, allowing for interaction such as detailed queries or data manipulation associated with specific neurons, by default False.
connect_pick_event (bool, optional) – If True, connects a pick event that triggers when a neuron is clicked, by default True.
**kwargs (dict) – Arbitrary keyword arguments that can be passed to the event handler onpick when an interactive element is clicked. Common parameters could include data specific to the plot or visualization settings.
- Returns:
fig (matplotlib.figure.Figure) – The Figure object containing the plot.
ax (matplotlib.axes.Axes) – The Axes object containing the plot elements.
patches (list) – A list of matplotlib.patches.Patch objects representing the hexagonal units of the SOM.
text (list) – A list of matplotlib.text.Text objects displaying the neuron indices.