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
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