visualizedendrogram_DendrogramSynapseStatistics_plot_synapse_density_hist

_DendrogramSynapseStatistics._plot_synapse_density_hist

visualize.dendrogram._DendrogramSynapseStatistics._plot_synapse_density_hist(ax, xlim, binsize=50)

Plot the synapse density histogram on an matplotlib.axes.Axes object.

If no colormap is provided during initialization, all synapses are plotted in red. If a colormap is provided, the synapses are plotted in the respective color.

Attention

If a colormap is provided, but does not contain all synapse types as they appear in synapses, the missing synapse types are omitted from the plot.

Parameters:
  • ax (matplotlib.axes.Axes) – The matplotlib axes object.

  • xlim (tuple) – The x-axis limits.

  • binsize (float) – The size of the bins in \(\mu m\). Default is \(50 \mu m\).

Returns:

The matplotlib axes object.

Return type:

matplotlib.axes.Axes