docs: def get_connectivity(self, measure_name, plot=False):
          """ Calculate spectral connectivity measure.
  
          Parameters
          ----------
          measure_name : str
              Name of the connectivity measure to calculate. See :class:`Connectivity` for supported measures.
          plot : {False, None, Figure object}, optional
              Whether and where to plot the connectivity. If set to **False**, nothing is plotted. Otherwise set to the
              Figure object. If set to **None**, a new figure is created.
  
          Returns
          -------
          measure : array, shape = [n_channels, n_channels, nfft]
              Values of the connectivity measure.
          fig : Figure object
              Instance of the figure in which was plotted. This is only returned if `plot` is not **False**.
  
          Raises
          ------
          RuntimeError
              If the :class:`Workspace` instance does not contain a fitted VAR model.
          """
          if self.connectivity_ is None:
              raise RuntimeError("Connectivity requires a VAR model (run do_mvarica or fit_var first)")
  
          cm = getattr(self.connectivity_, measure_name)()
  
          cm = np.abs(cm) if np.any(np.iscomplex(cm)) else cm
  
          if plot is None or plot:
              fig = plot
              if self.plot_diagonal == 'fill':
                  diagonal = 0
              elif self.plot_diagonal == 'S':
                  diagonal = -1
                  sm = np.abs(self.connectivity_.S())
                  sm /= np.max(sm)     # scale to 1 since components are scaled arbitrarily anyway
                  fig = self.plotting.plot_connectivity_spectrum(sm, fs=self.fs_, freq_range=self.plot_f_range,
                                                            diagonal=1, border=self.plot_outside_topo, fig=fig)
              else:
                  diagonal = -1
  
              fig = self.plotting.plot_connectivity_spectrum(cm, fs=self.fs_, freq_range=self.plot_f_range,
                                                        diagonal=diagonal, border=self.plot_outside_topo, fig=fig)
  
              return cm, fig
  
          return cm