saveFigure Save the current plot to an image.
The name of the file to which the plot is to be saved.
Description The suffix of the specified file should
correspond to one of the image file formats
that are supported
by the standard Java SDK class ImageIO. The suffixes that have been tested to work are
png , bmp , and gif .