Previous topic

quiverm

Next topic

scatter

This Page

savefig

mipylib.plotlib.miplot.savefig(fname, width=None, height=None)

Save the current figure.

Parameters:
  • fname – (string) A string containing a path to a filename. The output format is deduced from the extention of the filename. Supported format: ‘png’, ‘bmp’, ‘jpg’, ‘eps’ and ‘pdf’.
  • width – (int) Optional, width of the output figure with pixel units. Default is None, the output figure size is same as figures window.
  • height – (int) Optional, height of the output figure with pixel units. Default is None, the output figure size is same as figures window.

Examples:

savefig('D:/Temp/test.png', width=800, height=600)