\(\renewcommand\AA{\unicode{x212B}}\)
Table of Contents
| Name | Direction | Type | Default | Description | 
|---|---|---|---|---|
| String | Input | string | Mandatory | String to plot | 
| OutputFilename | Input | string | Mandatory | Name of the image file to savefile. Allowed values: [‘png’] | 
#write to a file
try:
    import mantid
    filename=mantid.config.getString("defaultsave.directory")+"StringToPngTest.png"
    StringToPng("This is a string\nAnd this is a second line",OutputFilename=filename)
except:
    pass
Output:
The file should look like
Categories: AlgorithmIndex | DataHandling\Plots
Python: StringToPng.py (last modified: 2020-03-27)