Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ae2f80 commit 99e0d99Copy full SHA for 99e0d99
magpylib/_src/display/backend_pyvista.py
@@ -280,7 +280,7 @@ def draw_frame(frame_ind):
280
canvas.add_mesh(pv.PolyData(pts), opacity=0)
281
try:
282
canvas.remove_scalar_bar()
283
- except IndexError:
+ except (StopIteration, IndexError):
284
# try to remove scalar bar, if none, pass
285
# needs to happen in the loop otherwise they cummulate
286
# while the max of 10 is reached and throws a ValueError
0 commit comments