autofig.save (function)


def save(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.draw and pass save.

See also: * autofig.open * autofig.to_dict * autofig.gcf * autofig.figure.Figure.save

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 passing do_renders to autofig.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.