NRAO Home > CASA > CASA Toolkit Reference Manual
tableplot.savefig - Function

3.2.2 Save the currently plotted image.


Description

Store the contents of the plot window in a file. The file format (type) is based on the file name, ie. the file extension given determines the format the file is saved as. The accepted formats are eps, ps, png, pdf, and svg.

Internally, this function uses the matplotlib pl.savefig function.

Note that if a full path is not given that the files will be saved in the current working directory.

Arguments





Inputs

filename

Name the plot image is to be saved to.

allowed:

string

Default:

dpi

Number of dots per inch (resolution) to save the image at.

allowed:

int

Default:

-1

orientation

Either landscape or portrait. Supported by the postscript format only.

allowed:

string

Default:

papertype

Valid values are: letter, legal, exective, ledger, a0-a10 and b0-b10. This option is supported byt the postscript format only.

allowed:

string

Default:

facecolor

Color of space between the plot and the edge of the square. Valid values are the same as those accepted by the plotcolour option of tp.plotdata().

allowed:

string

Default:

edgecolor

Color of the outer edge. Valid values are the same as those accepted by the plotcolour option of tp.plotdata().

allowed:

string

Default:

Returns
bool
__________________________________________________________________


More information about CASA may be found at the CASA web page

Copyright © 2016 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search