Commit 05c36229 authored by René Fritze's avatar René Fritze Committed by René Fritze

[vis] show at least one color bar with mpl animation

parent 3328aa65
......@@ -93,7 +93,7 @@ def visualize_patch(grid, U, bounding_box=([0, 0], [1, 1]), codim=2, title=None,
ax = figure.add_subplot(rows, columns, i+1)
axes.append(ax)
plots.append(MatplotlibPatchAxes(U=u, ax=ax, figure=figure, grid=grid, bounding_box=bounding_box, vmin=vmin, vmax=vmax,
codim=codim, colorbar=separate_colorbars))
codim=codim, colorbar=separate_colorbars or i == len(U)-1))
if legend:
ax.set_title(legend[i])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment