code: def _plot_connectivity_circle_onpick(
      event,
      fig=None,
      ax=None,
      indices=None,
      n_nodes=0,
      node_angles=None,
      ylim=[9, 10],
  ):
      """Isolate connections around a single node when user left clicks a node.
  
      On right click, resets all connections.
      """
      if event.inaxes != ax:
          return
  
      if event.button == 1:  # left click
          # click must be near node radius
          if not ylim[0] <= event.ydata <= ylim[1]:
              return
  
          # all angles in range [0, 2*pi]
          node_angles = node_angles % (np.pi * 2)
          node = np.argmin(np.abs(event.xdata - node_angles))
  
          patches = event.inaxes.patches
          for ii, (x, y) in enumerate(zip(indices[0], indices[1])):
              patches[ii].set_visible(node in [x, y])
          fig.canvas.draw()
      elif event.button == 3:  # right click
          patches = event.inaxes.patches
          for ii in range(np.size(indices, axis=1)):
              patches[ii].set_visible(True)
          fig.canvas.draw()
  
file_path: mne-python/mne/viz/circle.py
imports: from functools import partial
  from itertools import cycle
  import numpy
  from ..utils import _validate_type
  from .utils import _get_cmap, plt_show
label_desc: Use image node_id 2 for calling a global function with example usage: _plot_connectivity_circle_onpick(event, fig, ax, indices, n_nodes, node_angles, ylim) without return types