autofig.figure.Figure.save (function)
def save(self, filename, renders=[])
Save the current autofig.figure.Figure. Note: this saves the autofig
figure object itself, not the image. To save the image, call
autofig.figure.Figure.draw and pass save
.
See also: * autofig.figure.Figure.open * autofig.figure.Figure.to_dict
Arguments
filename
(string): path to save the figure instance.renders
(list of dictionaries, default=[]): commands to execute for rendering when opened by the command-line tool or by passingdo_renders
to autofig.figure.Figure.open. The format must be a list of dictionaries, where each dictionary must at least have 'render': 'draw' or 'render': 'animate'. Any additional key-value pairs will be passed as keyword arguments to the respective rendering method.
Returns
- (str) the path of the saved figure instance.