class Cryplot::Figure

Overview

Class used to create multiple plots in one canvas

Defined in:

plot/figure.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(plots : MultiPlots) #

[View source]

Instance Method Detail

def autoclean(enable : Bool) #

[View source]
def cleanup #

Delete all files used to store plot data or scripts.


[View source]
def font_name(name : String) #

Set the font name for the plot (e.g., Helvetica, Georgia, Times).


[View source]
def font_size(size : Int) #

Set the font size for the plot (e.g., 10, 12, 16).


[View source]
def palette(name : Cryplot::Palette) #

Set the palette of the colors for the plot.


[View source]
def save(filename : String) #

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


[View source]
def save_plot_data #

[View source]
def show #

Show the plot in a popup-window Note: This removes temporary files after saving if #autoclean is enabled. default is enabled


[View source]
def size(width : Int, height : Int) #

Set the size of the plot (in unit of points, with 1 inch = 72 points).


[View source]
def title(text : String) #

[View source]