savefig#
- savefig(figure, filename)#
Save
figureas a MATLAB.figfile.The file stores the figure, each axes, and the lines, images, and text on those axes (data, limits, colors, scales, and labels). Title and axis labels are text children indexed by the axes
specialvector, which is howopenfigattaches them. Figure text such as a suptitle is stored on the first axes, becauseopenfigdrops text parented to the figure. Scatter, bars, patches, and legends are omitted. A figure has one colormap, taken from the first image.Interpreterisnoneso label text is stored literally. Characters outside ASCII are replaced (a Unicode minus becomes-) so each MAT character array is one byte per character. Mathtext tick labels are stored as the plain tick value. Importing this module also registers Matplotlib’sfigformat, sofigure.savefig("name.fig")uses the same writer.