ExportCharts Method (Python)
Exports charts from this output document.
Syntax
SpssOutputDoc.ExportCharts(subSet,filePrefix,format)
Parameters
subSet. Specifies whether all charts, all visible charts, or all selected charts are exported. See available choices below.
filePrefix. Full path and file name prefix for the files containing the exported charts. Each chart is exported to a separate file.
format. Specifies the export format. See available choices below.
On Windows, it is recommended to use raw strings for file paths, or replace backslashes with forward slashes (IBM® SPSS® Statistics accepts a forward slash for any backslash in a file specification). Raw strings are specified by prefacing the string with r, as in r'c:\examples\mydata.sav'. In raw mode, Python treats all backslashes in the string as the backslash character and not as the start of an escape sequence.
Value | Description |
---|---|
SpssClient.SpssExportSubset.SpssSelected | All selected charts |
SpssClient.SpssExportSubset.SpssVisible | All visible charts |
SpssClient.SpssExportSubset.SpssAll | All charts |
Format | Description |
---|---|
SpssClient.ChartExportFormat.bmp | Windows bitmap |
SpssClient.ChartExportFormat.emf | Enhanced metafile |
SpssClient.ChartExportFormat.eps | Enhanced postscript |
SpssClient.ChartExportFormat.jpg | JPG file |
SpssClient.ChartExportFormat.png | PNG file |
SpssClient.ChartExportFormat.tiff | Tagged image file |