def plot(self): figure = pyplot.figure(figsize=self.figsize, dpi=200) for chart_cmd in self.chart_list: chart = Chart(chart_cmd) chart.plot(figure) pyplot.savefig(self.outfile, bbox_inches='tight', dpi=200, transparent=True) pyplot.close(figure)