class Cryplot::Figure
- Cryplot::Figure
- Reference
- Object
Overview
Class used to create multiple plots in one canvas
Defined in:
plot/figure.crConstructors
Instance Method Summary
- #autoclean(enable : Bool)
-
#cleanup
Delete all files used to store plot data or scripts.
-
#font_name(name : String)
Set the font name for the plot (e.g., Helvetica, Georgia, Times).
-
#font_size(size : Int)
Set the font size for the plot (e.g., 10, 12, 16).
-
#palette(name : Cryplot::Palette)
Set the palette of the colors for the plot.
-
#save(filename : String)
Save the plots in a file, with its extension defining the file format.
- #save_plot_data
-
#show
Show the plot in a popup-window Note: This removes temporary files after saving if
#autoclean
is enabled. -
#size(width : Int, height : Int)
Set the size of the plot (in unit of points, with 1 inch = 72 points).
- #title(text : String)
Constructor Detail
Instance Method Detail
Save the plots in a file, with its extension defining the file format.
The extension of the file name determines the file format
The supported formats are: pdf
, eps
, svg
, png
, and jpeg
Thus, to save a plot in pdf
format, choose a file as in plot.pdf
.
Note: This removes temporary files after saving if #autoclean
is enabled. default is enabled
Show the plot in a popup-window
Note: This removes temporary files after saving if #autoclean
is enabled. default is enabled
Set the size of the plot (in unit of points, with 1 inch = 72 points).