Skip to content

Commit

Permalink
Merge pull request #252 from NeuroML/fix/matplotlib-3.8
Browse files Browse the repository at this point in the history
fix(plots): provide axis for colorbar
  • Loading branch information
sanjayankur31 authored Sep 18, 2023
2 parents b8d5015 + 1da05a9 commit 60613af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyneuroml/plot/PlotMorphology.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ def plot_2D_cell_morphology(
norm = matplotlib.colors.Normalize(vmin=data_min, vmax=data_max)
fig.colorbar(
matplotlib.cm.ScalarMappable(norm=norm, cmap=acolormap),
ax=ax,
label=overlay_data_label,
)

Expand Down Expand Up @@ -1106,6 +1107,7 @@ def plot_segment_groups_curtain_plots(
norm = matplotlib.colors.Normalize(vmin=data_min, vmax=data_max)
fig.colorbar(
matplotlib.cm.ScalarMappable(norm=norm, cmap=acolormap),
ax=ax,
label=overlay_data_label,
)

Expand Down

0 comments on commit 60613af

Please sign in to comment.