Unverified Commit 5c6b3b6e authored by René Fritze's avatar René Fritze Committed by GitHub
Browse files

Added missing parameters for Matplotlib1DWidget (#1210)

Fixes #1209.
parents 8405a0f7 f20b4a3e
Pipeline #69909 failed with stages
in 32 minutes and 15 seconds
......@@ -433,7 +433,7 @@ def visualize_matplotlib_1d(grid, U, codim=1, title=None, legend=None, separate_
legend = (legend,)
assert legend is None or isinstance(legend, tuple) and len(legend) == len(U)
plot_widget = Matplotlib1DWidget(None, grid, count=len(U), vmin=[np.min(u) for u in U],
plot_widget = Matplotlib1DWidget(U, None, grid, len(U), vmin=[np.min(u) for u in U],
vmax=[np.max(u) for u in U], legend=legend, codim=codim,
separate_plots=separate_plots)
super().__init__(U, plot_widget, title=title, length=len(U[0]))
......
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