class Cryplot::Plot
- Cryplot::Plot
- Cryplot::BasePlot
- Reference
- Object
Overview
Class used to create a plot containing graphical elements
Defined in:
plot/plot.crConstructors
Instance Method Summary
-
#box_width_absolute(val : Float64)
Set the default width of boxes in plots containing boxes (in absolute mode).
-
#box_width_relative(val : Float64)
Set the default width of boxes in plots containing boxes (in relative mode).
-
#draw_boxes(name : String, xcol : String | Int32, ycol : String | Int32, xwidthcol : String | Int32)
Draw boxes with given values at @p xcol and @p ycol columns in file @p name as well as the box widths @p xwidthcol.
-
#draw_boxes(name : String, xcol : String | Int32, ycol : String | Int32)
Draw boxes with given values at @p xcol and @p ycol columns in file @p name.
-
#draw_boxes(x : X, y : Y, xwidth : XW) : Draw forall X, Y, XW
Draw boxes with given @p x and @p y vectors as well as the box widths @p xwidth.
-
#draw_boxes(x : X, y : Y) : Draw forall X, Y
Draw boxes with given @p x and @p y vectors.
-
#draw_boxes_with_error_bars_y(name : String, xcol : String | Int32, ycol : String | Int32, ylowcol : String | Int32, yhighcol : String | Int32)
Draw boxes with error bars along y with given values at @p xcol, @p ycol, @p ylowcol, and @p yhighcol columns in file @p name.
-
#draw_boxes_with_error_bars_y(name : String, xcol : String | Int32, ycol : String | Int32, ydeltacol : String | Int32)
Draw boxes with error bars along y with given values at @p xcol, @p ycol, @p ydeltacol columns in file @p name.
-
#draw_boxes_with_error_bars_y(x : X, y : Y, ylow : YL, yhigh : YH) : Draw forall X, Y, YL, YH
Draw boxes with error bars along y with given @p x, @p y, @p ylow, and @p yhigh vectors.
-
#draw_boxes_with_error_bars_y(x : X, y : Y, ydelta : YD) : Draw forall X, Y, YD
Draw boxes with error bars along y with given @p x, @p y, @p ydelta vectors.
-
#draw_broken_curve(x : X, y : Y) : Draw forall X, Y
Draw a curve with given @p x and @p y vectors, breaking this curve whenever NaN is found in @p x or @p y.
-
#draw_broken_curve_with_points(x : X, y : Y) : Draw forall X, Y
Draw a curve with points with given @p x and @p y vectors, breaking this curve whenever NaN is found in @p x or @p y.
-
#draw_curve(name : String, xcol : String | Int32, ycol : String | Int32)
Draw a curve with given values at @p xcol and @p ycol columns in file @p name.
-
#draw_curve(x : X, y : Y) : Draw forall X, Y
Draw a curve with given @p x and @p y vectors.
-
#draw_curve_with_error_bars_x(name : String, xcol : String | Int32, ycol : String | Int32, xlowcol : String | Int32, xhighcol : String | Int32)
Draw a curve with error bars along x with given values at @p xcol, @p ycol, @p xlowcol, and @p xhighcol columns in file @p name.
-
#draw_curve_with_error_bars_x(name : String, xcol : String | Int32, ycol : String | Int32, xdeltacol : String | Int32)
Draw a curve with error bars along x with given values at @p xcol, @p ycol, and @p xdeltacol columns in file @p name.
-
#draw_curve_with_error_bars_x(x : X, y : Y, xlow : XL, xhigh : XH) : Draw forall X, Y, XL, XH
Draw a curve with error bars along x with given @p x, @p y, @p xlow, and @p xhigh vectors.
-
#draw_curve_with_error_bars_x(x : X, y : Y, xdelta : XD) : Draw forall X, Y, XD
Draw a curve with error bars along x with given @p x, @p y, and @p xdelta vectors.
-
#draw_curve_with_error_bars_xy(name : String, xcol : String | Int32, ycol : String | Int32, xlowcol : String | Int32, xhighcol : String | Int32, ylowcol : String | Int32, yhighcol : String | Int32)
Draw a curve with error bars along x and y with given values at @p xcol, @p ycol, @p xlowcol, @p xhighcol, @p ylowcol, and @p yhighcol columns in file @p name.
-
#draw_curve_with_error_bars_xy(x : X, y : Y, xlow : XL, xhigh : XH, ylow : YL, yhigh : YH) : Draw forall X, Y, XL, XH, YL, YH
Draw a curve with error bars along x and y with given @p x, @p y, @p xlow, @p xhigh, @p ylow, and @p yhigh vectors.
-
#draw_curve_with_error_bars_xy(name : String, xcol : String | Int32, ycol : String | Int32, xdeltacol : String | Int32, ydeltacol : String | Int32)
Draw a curve with error bars along x and y with given values at @p xcol, @p ycol, @p xdeltacol, and @p ydeltacol columns in file @p name.
-
#draw_curve_with_error_bars_xy(x : X, y : Y, xdelta : XD, ydelta : YD) : Draw forall X, Y, XD, YD
Draw a curve with error bars along x and y with given @p x, @p y, @p xdelta, and @p ydelta vectors.
-
#draw_curve_with_error_bars_y(name : String, xcol : String | Int32, ycol : String | Int32, ylowcol : String | Int32, yhighcol : String | Int32)
Draw a curve with error bars along y with given values at @p xcol, @p ycol, @p ylowcol, and @p yhighcol columns in file @p name.
-
#draw_curve_with_error_bars_y(name : String, xcol : String | Int32, ycol : String | Int32, ydeltacol : String | Int32)
Draw a curve with error bars along y with given values at @p xcol, @p ycol, and @p ydeltacol columns in file @p name.
-
#draw_curve_with_error_bars_y(x : X, y : Y, ylow : YL, yhigh : YH) : Draw forall X, Y, YL, YH
Draw a curve with error bars along y with given @p x, @p y, @p xlow, and @p xhigh vectors.
-
#draw_curve_with_error_bars_y(x : X, y : Y, ydelta : XD) : Draw forall X, Y, XD
Draw a curve with error bars along y with given @p x, @p y, and @p xdelta vectors.
-
#draw_curve_with_points(name : String, xcol : String | Int32, ycol : String | Int32)
Draw a curve with points with given values at @p xcol and @p ycol columns in file @p name.
-
#draw_curve_with_points(x : X, y : Y) : Draw forall X, Y
Draw a curve with points with given @p x and @p y vectors.
-
#draw_curves_filled(x : X, y1 : Y1, y2 : Y2) : Draw forall X, Y1, Y2
Draw curves with given @p x, @p y1 and @p y2 vectors with filled areas above / below / between curves.
-
#draw_curves_filled(x : X, y : Y) : Draw forall X, Y
Draw curves with given @p x and @p y vectors with filled areas above / below axes.
-
#draw_dots(name : String, xcol : String | Int32, ycol : String | Int32)
Draw dots with given values at @p xcol and @p ycol columns in file @p name.
-
#draw_dots(x, y)
Draw dots with given @p x and @p y vectors.
-
#draw_error_bars_x(name : String, xcol : String | Int32, ycol : String | Int32, xlowcol : String | Int32, xhighcol : String | Int32)
Draw error bars along x with given values at @p xcol, @p ycol, @p xlowcol, and @p xhighcol columns in file @p name.
-
#draw_error_bars_x(name : String, xcol : String | Int32, ycol : String | Int32, xdeltacol : String | Int32)
Draw error bars along x with given values at @p xcol, @p ycol, and @p xdeltacol columns in file @p name.
-
#draw_error_bars_x(x, y, xlow, xhigh)
Draw error bars along x with given @p x, @p y, @p xlow, and @p xhigh vectors.
-
#draw_error_bars_x(x, y, xdelta)
Draw error bars along x with given @p x, @p y, and @p xdelta vectors.
-
#draw_error_bars_xy(name : String, xcol : String | Int32, ycol : String | Int32, xlowcol : String | Int32, xhighcol : String | Int32, ylowcol : String | Int32, yhighcol : String | Int32)
Draw error bars along x and y with given values at @p xcol, @p ycol, @p xlowcol, @p xhighcol, @p ylowcol, and @p yhighcol columns in file @p name.
-
#draw_error_bars_xy(x, y, xlow, xhigh, ylow, yhigh)
Draw error bars along x and y with given @p x, @p y, @p xlow, @p xhigh, @p ylow, and @p yhigh vectors.
-
#draw_error_bars_xy(name : String, xcol : String | Int32, ycol : String | Int32, xdeltacol : String | Int32, ydeltacol : String | Int32)
Draw error bars along x and y with given values at @p xcol, @p ycol, @p xdeltacol, and @p ydeltacol columns in file @p name.
-
#draw_error_bars_xy(x, y, xdelta, ydelta)
Draw error bars along x and y with given @p x, @p y, @p xdelta, and @p ydelta vectors.
-
#draw_error_bars_y(name : String, xcol : String | Int32, ycol : String | Int32, ylowcol : String | Int32, yhighcol : String | Int32)
Draw error bars along y with given values at @p xcol, @p ycol, @p ylowcol, and @p yhighcol columns in file @p name.
-
#draw_error_bars_y(name : String, xcol : String | Int32, ycol : String | Int32, ydeltacol : String | Int32)
Draw error bars along y with given values at @p xcol, @p ycol, and @p ydeltacol columns in file @p name.
-
#draw_error_bars_y(x, y, ylow, yhigh)
Draw error bars along y with given @p x, @p y, @p ylow, and @p yhigh vectors.
-
#draw_error_bars_y(x, y, ydelta)
Draw error bars along y with given @p x, @p y, and @p ydelta vectors.
-
#draw_histogram(name : String, ycol : String | Int32)
Draw a histogram with given values at @p ycol column in file @p name.
-
#draw_histogram(y)
Draw a histogram for the given @p y vector.
-
#draw_impulses(name : String, xcol : String | Int32, ycol : String | Int32)
Draw impulses with given values at @p xcol and @p ycol columns in file @p name.
-
#draw_impulses(x, y)
Draw impulses with given @p x and @p y vectors.
-
#draw_points(name : String, xcol : String | Int32, ycol : String | Int32)
Draw points with given values at @p xcol and @p ycol columns in file @p name.
-
#draw_points(x, y)
Draw points with given @p x and @p y vectors.
-
#draw_steps(name : String, xcol : String | Int32, ycol : String | Int32)
Draw steps with given values at @p xcol and @p ycol columns in file @p name.
-
#draw_steps(x, y)
Draw steps with given @p x and @p y vectors.
-
#draw_steps_change_first_x(name : String, xcol : String | Int32, ycol : String | Int32)
Draw steps with given values at @p xcol and @p ycol columns in file @p name with steps along x changes first.
-
#draw_steps_change_first_x(x, y)
Draw steps with given @p x and @p y vectors with steps along x changes first.
-
#draw_steps_change_first_y(name : String, xcol : String | Int32, ycol : String | Int32)
Draw steps with given values at @p xcol and @p ycol columns in file @p name with steps along y changes first.
-
#draw_steps_change_first_y(x, y)
Draw steps with given @p x and @p y vectors with steps along y changes first.
-
#draw_steps_filled(name : String, xcol : String | Int32, ycol : String | Int32)
Draw steps with given values at @p xcol and @p ycol columns in file @p name with filled area below steps.
-
#draw_steps_filled(x, y)
Draw steps with given @p x and @p y vectors with filled area below steps.
-
#draw_steps_histogram(name : String, xcol : String | Int32, ycol : String | Int32)
Draw steps with given values at @p xcol and @p ycol columns in file @p name in a histogram style
-
#draw_steps_histogram(x, y)
Draw steps with given @p x and @p y vectors in a histogram style
-
#draw_with_cols(name : String, with_ : String, cols : Array(String | Int32))
Draw plot object with given style and given vectors (e.g.,
plot.draw("lines", x, y)
). -
#draw_with_vecs(with_ : String, x : X, *vecs : Array) : Draw forall X
Draw plot object with given style and given vectors (e.g.,
plot.draw("lines", x, y)
). -
#draw_with_vecs_containing_nan(with_ : String, x : X, *vecs : Array) : Draw forall X
Draw plot object with given style and given vectors (e.g.,
plot.draw("lines", x, y)
) that may contain NaN values. - #repr : String
-
#rtics : Cryplot::MajorTics
Return the specifications of the grid lines along major rtics.
-
#rtics_major : MajorTics
Return the specifications of the grid lines along minor rtics.
-
#rtics_minor : MinorTics
Return the specifications of the grid lines along minor rtics.
-
#style_histogram : HistogramStyle
an object that permits histogram style to be customized.
-
#tics : Tics
tics of the plot and return a reference to the corresponding specs object.
-
#to_s(io : IO) : Nil
convert this plot object into a gnuplot formatted string.
-
#xlabel(label : String)
Set the label of the x-axis and return a reference to the corresponding specs object.
-
#xrange(min : StringOrFloat, max : StringOrFloat)
Set the x-range of the plot (also possible with empty values or autoscale options (e.g.
-
#xtics : Cryplot::MajorTics
Return the specifications of the grid lines along major xtics on the bottom axis.
-
#xtics_major_bottom : MajorTics
Return the specifications of the grid lines along major xtics on the bottom axis.
-
#xtics_major_top : MajorTics
Return the specifications of the grid lines along major xtics on the top axis.
-
#xtics_minor_bottom : MinorTics
Return the specifications of the grid lines along minor xtics on the bottom axis.
-
#xtics_minor_top : MinorTics
Return the specifications of the grid lines along minor xtics on the top axis.
-
#ylabel(label : String)
Set the label of the y-axis and return a reference to the corresponding specs object.
-
#yrange(min : StringOrFloat, max : StringOrFloat)
Set the y-range of the plot (also possible with empty values or autoscale options (e.g.
-
#ytics : Cryplot::MajorTics
Return the specifications of the grid lines along major ytics on the left axis.
-
#ytics_major_left : MajorTics
Return the specifications of the grid lines along major ytics on the left axis.
-
#ytics_major_right : MajorTics
Return the specifications of the grid lines along major ytics on the right axis.
-
#ytics_minor_left : MinorTics
Return the specifications of the grid lines along minor ytics on the left axis.
-
#ytics_minor_right : MinorTics
Return the specifications of the grid lines along minor ytics on the right axis.
-
#ztics : Cryplot::MajorTics
Return the specifications of the grid lines along major ztics.
-
#ztics_major : MajorTics
Return the specifications of the grid lines along major ztics.
-
#ztics_minor : MinorTics
Return the specifications of the grid lines along minor ztics.
Instance methods inherited from class Cryplot::BasePlot
autoclean(val : Bool)autoclean : Bool autoclean, autoclean=(autoclean : Bool) autoclean=, border : Border border, cleanup cleanup, clear clear, data_filename : String data_filename, draw(what : String, using : String, expr : String)
draw(using : String, expr : String) draw, font_name(name : String) font_name, font_size(size : Int) font_size, gnuplot(cmd : String) gnuplot, grid : Grid grid, legend : Legend legend, palette(name : Cryplot::Palette)
palette : Cryplot::Palette palette, palette=(palette : Cryplot::Palette) palette=, repr : String repr, samples(value : Int) samples, save(filename : String) save, save_plot_data save_plot_data, show show, size(width : Int, height : Int) size, style_fill : FillStyle style_fill, this this, title(text : String)
title : Title title, to_s(io : IO) : Nil to_s
Constructor methods inherited from class Cryplot::BasePlot
new
new
Constructor Detail
Instance Method Detail
Set the default width of boxes in plots containing boxes (in absolute mode). In absolute mode, a unit width is equivalent to one unit of length along the x axis.
Set the default width of boxes in plots containing boxes (in relative mode). In relative mode, a unit width is equivalent to setting the boxes side by side.
Draw boxes with given values at @p xcol and @p ycol columns in file @p name as well as the box widths @p xwidthcol.
Draw boxes with given values at @p xcol and @p ycol columns in file @p name.
Draw boxes with given @p x and @p y vectors as well as the box widths @p xwidth.
Draw boxes with given @p x and @p y vectors.
Draw boxes with error bars along y with given values at @p xcol, @p ycol, @p ylowcol, and @p yhighcol columns in file @p name.
Draw boxes with error bars along y with given values at @p xcol, @p ycol, @p ydeltacol columns in file @p name.
Draw boxes with error bars along y with given @p x, @p y, @p ylow, and @p yhigh vectors.
Draw boxes with error bars along y with given @p x, @p y, @p ydelta vectors.
Draw a curve with given @p x and @p y vectors, breaking this curve whenever NaN is found in @p x or @p y.
Draw a curve with points with given @p x and @p y vectors, breaking this curve whenever NaN is found in @p x or @p y.
Draw a curve with given values at @p xcol and @p ycol columns in file @p name.
Draw a curve with given @p x and @p y vectors.
Draw a curve with error bars along x with given values at @p xcol, @p ycol, @p xlowcol, and @p xhighcol columns in file @p name.
Draw a curve with error bars along x with given values at @p xcol, @p ycol, and @p xdeltacol columns in file @p name.
Draw a curve with error bars along x with given @p x, @p y, @p xlow, and @p xhigh vectors.
Draw a curve with error bars along x with given @p x, @p y, and @p xdelta vectors.
Draw a curve with error bars along x and y with given values at @p xcol, @p ycol, @p xlowcol, @p xhighcol, @p ylowcol, and @p yhighcol columns in file @p name.
Draw a curve with error bars along x and y with given @p x, @p y, @p xlow, @p xhigh, @p ylow, and @p yhigh vectors.
Draw a curve with error bars along x and y with given values at @p xcol, @p ycol, @p xdeltacol, and @p ydeltacol columns in file @p name.
Draw a curve with error bars along x and y with given @p x, @p y, @p xdelta, and @p ydelta vectors.
Draw a curve with error bars along y with given values at @p xcol, @p ycol, @p ylowcol, and @p yhighcol columns in file @p name.
Draw a curve with error bars along y with given values at @p xcol, @p ycol, and @p ydeltacol columns in file @p name.
Draw a curve with error bars along y with given @p x, @p y, @p xlow, and @p xhigh vectors.
Draw a curve with error bars along y with given @p x, @p y, and @p xdelta vectors.
Draw a curve with points with given values at @p xcol and @p ycol columns in file @p name.
Draw a curve with points with given @p x and @p y vectors.
Draw curves with given @p x, @p y1 and @p y2 vectors with filled areas above / below / between curves.
Draw curves with given @p x and @p y vectors with filled areas above / below axes.
Draw dots with given values at @p xcol and @p ycol columns in file @p name.
Draw error bars along x with given values at @p xcol, @p ycol, @p xlowcol, and @p xhighcol columns in file @p name.
Draw error bars along x with given values at @p xcol, @p ycol, and @p xdeltacol columns in file @p name.
Draw error bars along x with given @p x, @p y, @p xlow, and @p xhigh vectors.
Draw error bars along x with given @p x, @p y, and @p xdelta vectors.
Draw error bars along x and y with given values at @p xcol, @p ycol, @p xlowcol, @p xhighcol, @p ylowcol, and @p yhighcol columns in file @p name.
Draw error bars along x and y with given @p x, @p y, @p xlow, @p xhigh, @p ylow, and @p yhigh vectors.
Draw error bars along x and y with given values at @p xcol, @p ycol, @p xdeltacol, and @p ydeltacol columns in file @p name.
Draw error bars along x and y with given @p x, @p y, @p xdelta, and @p ydelta vectors.
Draw error bars along y with given values at @p xcol, @p ycol, @p ylowcol, and @p yhighcol columns in file @p name.
Draw error bars along y with given values at @p xcol, @p ycol, and @p ydeltacol columns in file @p name.
Draw error bars along y with given @p x, @p y, @p ylow, and @p yhigh vectors.
Draw error bars along y with given @p x, @p y, and @p ydelta vectors.
Draw a histogram with given values at @p ycol column in file @p name.
Draw impulses with given values at @p xcol and @p ycol columns in file @p name.
Draw points with given values at @p xcol and @p ycol columns in file @p name.
Draw steps with given values at @p xcol and @p ycol columns in file @p name. Identical to @ref drawStepsChangeFirstX.
Draw steps with given @p x and @p y vectors. Identical to @ref drawStepsChangeFirstX.
Draw steps with given values at @p xcol and @p ycol columns in file @p name with steps along x changes first.
Draw steps with given @p x and @p y vectors with steps along x changes first.
Draw steps with given values at @p xcol and @p ycol columns in file @p name with steps along y changes first.
Draw steps with given @p x and @p y vectors with steps along y changes first.
Draw steps with given values at @p xcol and @p ycol columns in file @p name with filled area below steps.
Draw steps with given @p x and @p y vectors with filled area below steps.
Draw steps with given values at @p xcol and @p ycol columns in file @p name in a histogram style
Draw plot object with given style and given vectors (e.g., plot.draw("lines", x, y)
).
Draw plot object with given style and given vectors (e.g., plot.draw("lines", x, y)
).
Draw plot object with given style and given vectors (e.g., plot.draw("lines", x, y)
) that may contain NaN values.
Return the specifications of the grid lines along minor rtics.
Return the specifications of the grid lines along minor rtics.
tics of the plot and return a reference to the corresponding specs object.
convert this plot object into a gnuplot formatted string.
Set the label of the x-axis and return a reference to the corresponding specs object.
Set the x-range of the plot (also possible with empty values or autoscale options (e.g. "", "*")).
Return the specifications of the grid lines along major xtics on the bottom axis.
Return the specifications of the grid lines along major xtics on the bottom axis.
Return the specifications of the grid lines along major xtics on the top axis.
Return the specifications of the grid lines along minor xtics on the bottom axis.
Return the specifications of the grid lines along minor xtics on the top axis.
Set the label of the y-axis and return a reference to the corresponding specs object.
Set the y-range of the plot (also possible with empty values or autoscale options (e.g. "", "*")).
Return the specifications of the grid lines along major ytics on the left axis.
Return the specifications of the grid lines along major ytics on the left axis.
Return the specifications of the grid lines along major ytics on the right axis.
Return the specifications of the grid lines along minor ytics on the left axis.
Return the specifications of the grid lines along minor ytics on the right axis.
Return the specifications of the grid lines along major ztics.
Return the specifications of the grid lines along minor ztics.