class Ishi::Gnuplot::Chart
- Ishi::Gnuplot::Chart
- Reference
- Object
Overview
A chart is a collection of plots and related metadata.
Defined in:
ishi/gnuplot.crInstance Method Summary
-
#clear
Clears the chart.
-
#dim
Returns the dimensionality of the chart.
- #dim?
-
#plot(plot)
Adds a plot to the chart.
- #plots : Array(Ishi::Gnuplot::Plot)
-
#size
Returns the number of plots.
-
#xlabel(xlabel : String)
Sets the label of the
x
axis. - #xlabel : String?
-
#xrange(xrange : Range(Float64, Float64) | Range(Int32, Int32))
Sets the range of the
x
axis. - #xrange : Range(Float64, Float64) | Range(Int32, Int32) | Nil
-
#ylabel(ylabel : String)
Sets the label of the
y
axis. - #ylabel : String?
-
#yrange(yrange : Range(Float64, Float64) | Range(Int32, Int32))
Sets the range of the
y
axis. - #yrange : Range(Float64, Float64) | Range(Int32, Int32) | Nil
-
#zlabel(zlabel : String)
Sets the label of the
z
axis. - #zlabel : String?
-
#zrange(zrange : Range(Float64, Float64) | Range(Int32, Int32))
Sets the range of the
z
axis. - #zrange : Range(Float64, Float64) | Range(Int32, Int32) | Nil
Instance Method Detail
def dim
#
Returns the dimensionality of the chart.
All plots in a chart must have the same dimensionality (it's not currently possible to plot 2D and 3D data simultaneously).