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
- #bottom : Bool | Float64 | Int32 | Nil
-
#boxwidth(boxwidth : Float64)
Sets the default width of boxes.
- #boxwidth : Float64?
-
#clear
Clears the chart.
-
#dim
Returns the dimensionality of the chart.
- #dim?
- #left : Bool | Float64 | Int32 | Nil
-
#margin(left : Float64 | Bool, right : Float64 | Bool, top : Float64 | Bool, bottom : Float64 | Bool)
Sets the margin.
-
#margin(left : Int32 | Bool, right : Int32 | Bool, top : Int32 | Bool, bottom : Int32 | Bool)
Sets the margin.
-
#palette(palette_name : Symbol, colorbox show_colorbox : Bool | Nil = true)
Sets the palette.
- #palette_name : Symbol?
-
#plot(plot)
Adds a plot to the chart.
- #plots : Array(Ishi::Gnuplot::Plot)
- #right : Bool | Float64 | Int32 | Nil
-
#show_border(show_border : Bool)
Shows/hides the chart border.
- #show_border : Bool?
-
#show_colorbox(show_colorbox : Bool)
Shows/hides the chart colorbox.
- #show_colorbox : Bool?
-
#show_key(show_key : Bool)
Shows/hides the chart key.
- #show_key : Bool?
-
#show_xtics(show_xtics : Bool)
Shows/hides the chart xtics.
- #show_xtics : Bool?
-
#show_ytics(show_ytics : Bool)
Shows/hides the chart ytics.
- #show_ytics : Bool?
-
#size
Returns the number of plots.
- #top : Bool | Float64 | Int32 | Nil
-
#view(xrot : Float64, zrot : Float64)
Sets the viewing angle for 3D charts.
-
#view(xrot : Int32, zrot : Int32)
Sets the viewing angle for 3D charts.
- #view : {Float64 | Int32, Float64 | Int32}?
-
#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
-
#xtics(xtics : Hash(Float64, String))
Sets non-numeric tic labels on the x-axis.
- #xtics : Hash(Float64, String)?
-
#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
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).
Sets the margin.
Sets the margin.