class

Cryplot::BasePlot

Inherits Reference / Object

Class used to create a plot containing graphical elements

Constructors

Instance methods

autoclean(val : Bool)
Source
autoclean

Toggle automatic cleaning of temporary files (enabled by default)

Source
autoclean=(autoclean : Bool)

Toggle automatic cleaning of temporary files (enabled by default)

Source
border

border style of the plot

Source
cleanup

Delete all files used to store plot data or scripts.

Source
clear

clear all draw and gnuplot commands Note: This method leaves all other plot properties untouched.

Source
data_filename
Source
draw(what : String, using : String, expr : String)

Draw plot object with given what, using and with expressions (e.g., plot.draw("sin(x)*cos(x)", "", "linespoints"), (e.g., plot.draw("file.dat", "1:2", "points"))).

Source
draw(using : String, expr : String)

Draw plot object with given using and with expressions (e.g., plot.draw("1:2", "points"))).

Source
font_name(name : String)

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

Source
font_size(size : Int)

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

Source
gnuplot(cmd : String)

Use this method to provide gnuplot commands to be executed before the plotting calls.

Source
grid

The vector of grid specs for the major and minor grid lines in the plot (for xtics, ytics, mxtics, etc.).

Source
legend

legend specs of the plot

Source
palette(name : Cryplot::Palette)

Set the palette of the colors for the plot.

Source
palette

gnu palette to be used

Source
palette=(palette : Cryplot::Palette)

gnu palette to be used

Source
repr
Source
samples(value : Int)
Source
save(filename : String)

Save the plot 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

Source
save_plot_data

write the current plot data to data file

Source
show

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

Source
size(width : Int, height : Int)

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

Source
style_fill

The specs for the fill style of the plot elements in the plot that can be painted.

Source
this
Source
title(text : String)

Set the title text of the plot

Source
title

title of the plot

Source
to_s(io : IO) : Nil

convert this plot object into a gnuplot formatted string.

Source