Commit b2c6a22a authored by René Fritze's avatar René Fritze Committed by René Fritze

[vis] fix 1D MPL axes count for not separated axes

parent 2f8a0d1f
......@@ -203,7 +203,10 @@ def visualize_matplotlib_1d(grid, U, codim=1, title=None, legend=None, separate_
import matplotlib.pyplot as plt
rows = int(np.ceil(len(U[0]) / columns))
if separate_axes:
rows = int(np.ceil(len(U[0]) / columns))
else:
rows = int(np.ceil(len(U) / columns))
self.plots = []
......
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