neurocarto.util.edit.plot

neurocarto.util.edit.plot.plot_blueprint(bp, blueprint, colors=None, *, ax=None, **kwargs)

call ProbeDesp primary plotting method for plotting a blueprint with a matplotlib axes.

If ax is None, create one with the rc file used by PltImageView.

It is a blueprint_function() function.

Parameters:
  • blueprint (NDArray[np.int_]) – Array[category:int, E], where E means all electrodes

  • colors (dict[int, Any]) – categories color {category: color}, where color is used by matplotlib.

  • ax (Axes) – matplotlib.Axes

  • kwargs

  • bp (BlueprintFunctions)

Raises:

TypeError – Probe not a ProbePlotElectrodeProtocol

See:

ProbePlotElectrodeProtocol

See:

BlueprintFunctions. plot_blueprint()