first prototype

This commit is contained in:
2021-09-15 15:29:10 +02:00
parent e90f013e54
commit e8c4630ffa
8 changed files with 283 additions and 0 deletions

27
zoetrope/contplot.py Normal file
View File

@ -0,0 +1,27 @@
class PlotContainer:
def __init__(self, artist, ax):
self.artist = artist
self.ax = ax
def __repr__(self):
return repr(self.artist)
def set(self, *args):
self.artist.set_data(*args)
def _draw(self):
self.ax.draw_artist(self.artist)
def _enable_animated(self):
self.artist.set_animated(True)
def _disable_animated(self):
self.artist.set_animated(False)