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

[gui] stop "empty" visualizatio breaking in MPL internals

parent 9468f577
......@@ -56,7 +56,7 @@ class MatplotlibAxesBase:
# assignment delayed to ensure _plot_init works w/o data
self.U = U
# Rest is only needed with animation
if not separate_axes and self.count == 1:
if U is not None and not separate_axes and self.count == 1:
assert len( == 1
delay_between_frames = 200 # ms
self.anim = animation.FuncAnimation(figure, self.animate,
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