def save_graph(self): """Save the graph with the name given in class attribute `graph_name`. The method is called by the *Save graph* button, which is created automatically if the `graph_name` is defined. """ graph_obj = getdeepattr(self, self.graph_name, None) if graph_obj is None: return saveplot.save_plot(graph_obj, self.graph_writers)
def save_graph(self): saveplot.save_plot(self.plotview, self.parent.graph_writers)
def save_graph(self): saveplot.save_plot(self.plotview, FileFormat.img_writers)
def save_graph(self): save_plot(data=dict(scene=self.scene, tree=self.tree), file_formats=dict( chain(FileFormat.img_writers.items(), FileFormat.graph_writers.items())))
def save_graph(self): graph_obj = getdeepattr(self, self.graph_name, None) if graph_obj is None: return saveplot.save_plot(graph_obj, self.graph_writers)
def save_graph(self): save_plot(data=dict(scene=self.scene, tree=self.tree), file_formats=dict(chain(FileFormat.img_writers.items(), FileFormat.graph_writers.items())))