Ejemplo n.º 1
0
 def add(self, item, artist=None, **kwargs):
     if not artist:
         artist = Artist.build(item, **kwargs)
     artist.plotter = self
     artist.draw()
     self._artists.append(artist)
     return artist
Ejemplo n.º 2
0
 def add_as(self, item, artist_type, **kwargs):
     artist = Artist.build_as(item, artist_type, **kwargs)
     artist.plotter = self
     artist.draw()
     self._artists.append(artist)
     return artist