FigureBase

The base class for both FigureBase and Subplot. Holds common functionality like saving and text drawing.

Members

Functions

getDefaultWindow
gtk.Window.Window getDefaultWindow()

Returns a default plot window with this figure in it.

saveToFile
void saveToFile(string filename, string type, double width = 0, double height = 0)

Saves this figure to a file. The file type can be one of either the raster formats .png, .jpg, .tiff, and .bmp, or the vector formats .pdf, .svg and .eps. The width and height parameters allow you to specify explicit width and height parameters for the image file. If width and height are left at their default values of 0, the default width and height of the subclass being saved will be used.

saveToFile
void saveToFile(string filename, double width = 0, double height = 0)

Convenience function that infers the type from the filename extenstion and defaults to .png if no valid file format extension is found.

showAsMain
void showAsMain()

Draw and display the figure as a main form. This is useful in otherwise console-based apps that want to display a few plots. However, you can't have another main form up at the same time.

toWidget
FigureWidget toWidget()

Creates a Widget that will have this object drawn to it. This Widget can be displayed in a window.

Inherited Members

From GuiAgnosticBase

title
string title()
title
This title(string newTitle)
xLabel
string xLabel()
xLabel
This xLabel(string newLabel)
yLabel
string yLabel()
yLabel
This yLabel(string newLabel)
titleFont
Font titleFont()
titleFont
This titleFont(Font newTitleFont)
xLabelFont
Font xLabelFont()
xLabelFont
This xLabelFont(Font newLabelFont)
yLabelFont
Font yLabelFont()
yLabelFont
This yLabelFont(Font newLabelFont)

Meta