Skip to content

Commit

Permalink
🐛 reset material when creating new figure
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Jun 29, 2021
1 parent 9f53e52 commit e2eafc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ipyvolume/pylab.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def figure(
current.container = current.containers[key]
else:
current.figure = ipv.Figure(width=width, height=height, **kwargs)
current.material = None
current.container = ipywidgets.VBox()
current.container.children = [current.figure]
if key is None:
Expand Down

0 comments on commit e2eafc4

Please sign in to comment.