class Cryplot::Plot3D

Overview

Class used to create a 3D plot containing graphical elements

Defined in:

plot/plot3d.cr

Constructors

Instance Method Summary

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

def self.new #

[View source]

Instance Method Detail

def box_width_absolute(val : Float64) #

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.


[View source]
def box_width_relative(val : Float64) #

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.


[View source]
def draw_curve(name : String, xcol : String | Int32, ycol : String | Int32) #

Draw a curve with given values at xcol and ycol columns in file name.


[View source]
def draw_curve(x : X, y : Y, z : Z) : Draw forall X, Y, Z #

Draw a curve with given x,y and z vectors.


[View source]
def draw_curve_with_points(name : String, xcol : String | Int32, ycol : String | Int32) #

Draw a curve with points with given values at xcol and ycol columns in file name.


[View source]
def draw_curve_with_points(x : X, y : Y, z : Z) : Draw forall X, Y, Z #

Draw a curve with points with given x,y and z vectors.


[View source]
def draw_dots(name : String, xcol : String | Int32, ycol : String | Int32) #

Draw dots with given values at xcol and ycol columns in file name.


[View source]
def draw_dots(x, y, z) #

Draw dots with given x, y and z vectors.


[View source]
def draw_histogram(name : String, ycol : String | Int32) #

Draw a histogram with given values at ycol column in file name.


[View source]
def draw_histogram(y) #

Draw a histogram for the given y vector.


[View source]
def draw_impulses(name : String, xcol : String | Int32, ycol : String | Int32) #

Draw impulses with given values at xcol and ycol columns in file name.


[View source]
def draw_impulses(x, y, z) #

Draw impulses with given x,y and z vectors.


[View source]
def draw_points(name : String, xcol : String | Int32, ycol : String | Int32) #

Draw points with given values at xcol and ycol columns in file name.


[View source]
def draw_points(x, y, z) #

Draw points with given x,y and z vectors.


[View source]
def 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)).


[View source]
def 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)).


[View source]
def repr : String #

[View source]
def rtics_major : MajorTics #

Return the specifications of the grid lines along minor rtics.


[View source]
def rtics_minor : MinorTics #

Return the specifications of the grid lines along minor rtics.


[View source]
def style_histogram : HistogramStyle #

an object that permits histogram style to be customized.


[View source]
def tics : Tics #

tics of the plot and return a reference to the corresponding specs object.


[View source]
def to_s(io : IO) : Nil #
Description copied from class Cryplot::BasePlot

convert this plot object into a gnuplot formatted string.


[View source]
def xlabel(label : String) #

Set the label of the x-axis and return a reference to the corresponding specs object.


[View source]
def xrange(min : StringOrFloat, max : StringOrFloat) #

Set the x-range of the plot (also possible with empty values or autoscale options (e.g. "", "*")).


[View source]
def xtics_major_bottom : MajorTics #

Return the specifications of the grid lines along major xtics on the bottom axis.


[View source]
def xtics_major_top : MajorTics #

Return the specifications of the grid lines along major xtics on the top axis.


[View source]
def xtics_minor_bottom : MinorTics #

Return the specifications of the grid lines along minor xtics on the bottom axis.


[View source]
def xtics_minor_top : MinorTics #

Return the specifications of the grid lines along minor xtics on the top axis.


[View source]
def ylabel(label : String) #

Set the label of the y-axis and return a reference to the corresponding specs object.


[View source]
def yrange(min : StringOrFloat, max : StringOrFloat) #

Set the y-range of the plot (also possible with empty values or autoscale options (e.g. "", "*")).


[View source]
def ytics_major_left : MajorTics #

Return the specifications of the grid lines along major ytics on the left axis.


[View source]
def ytics_major_right : MajorTics #

Return the specifications of the grid lines along major ytics on the right axis.


[View source]
def ytics_minor_left : MinorTics #

Return the specifications of the grid lines along minor ytics on the left axis.


[View source]
def ytics_minor_right : MinorTics #

Return the specifications of the grid lines along minor ytics on the right axis.


[View source]
def zlabel(label : String) #

Set the label of the z-axis and return a reference to the corresponding specs object.


[View source]
def zrange(min : StringOrFloat, max : StringOrFloat) #

Set the z-range of the plot (also possible with empty values or autoscale options (e.g. "", "*")).


[View source]
def ztics_major : MajorTics #

Return the specifications of the grid lines along major ztics.


[View source]
def ztics_minor : MinorTics #

Return the specifications of the grid lines along minor ztics.


[View source]