def draw_graph(self, path): self.calculate_dimensions() graph_t.draw_graph(self) self.draw_data() self.draw_legend() self.draw_title() self.graph.image.write_to_png(path, self.orig_width, self.orig_height)
def draw_graph(self, path): graph_t.draw_graph(self) self.draw_yaxis() self.draw_xaxis() self.draw_data() self.draw_legend(yoffset = -20, xoffset=100) self.draw_title() self.graph.image.write_to_png(path, self.width+280, self.height+110)