class

Ishi::Gnuplot::Chart

Inherits Reference / Object

A chart is a collection of plots and related metadata.

Instance methods

bottom
Source
boxwidth(boxwidth : Float64)

Sets the default width of boxes.

Source
boxwidth
Source
clear

Clears the chart.

Source
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).

Source
dim?
Source
left
Source
margin(left : Float64 | Bool, right : Float64 | Bool, top : Float64 | Bool, bottom : Float64 | Bool)

Sets the margin.

Source
margin(left : Int32 | Bool, right : Int32 | Bool, top : Int32 | Bool, bottom : Int32 | Bool)

Sets the margin.

Source
palette(palette_name : Symbol, colorbox show_colorbox : Bool | Nil = true)

Sets the palette.

Source
palette_name
Source
plot(plot)

Adds a plot to the chart.

Source
plots
Source
right
Source
show_border(show_border : Bool)

Shows/hides the chart border.

Source
show_border
Source
show_colorbox(show_colorbox : Bool)

Shows/hides the chart colorbox.

Source
show_colorbox
Source
show_key(show_key : Bool)

Shows/hides the chart key.

Source
show_key
Source
show_xtics(show_xtics : Bool)

Shows/hides the chart xtics.

Source
show_xtics
Source
show_ytics(show_ytics : Bool)

Shows/hides the chart ytics.

Source
show_ytics
Source
size

Returns the number of plots.

Source
view(xrot : Float64, zrot : Float64)

Sets the viewing angle for 3D charts.

Source
view(xrot : Int32, zrot : Int32)

Sets the viewing angle for 3D charts.

Source
view
Source
xlabel(xlabel : String)

Sets the label of the x axis.

Source
xlabel
Source
xrange(xrange : Range(Float64, Float64) | Range(Int32, Int32))

Sets the range of the x axis.

Source
xrange
Source
xtics(xtics : Hash(Float64, String))

Sets non-numeric tic labels on the x-axis.

Source
xtics
Source
ylabel(ylabel : String)

Sets the label of the y axis.

Source
ylabel
Source
yrange(yrange : Range(Float64, Float64) | Range(Int32, Int32))

Sets the range of the y axis.

Source
yrange
Source
zlabel(zlabel : String)

Sets the label of the z axis.

Source
zlabel
Source
zrange(zrange : Range(Float64, Float64) | Range(Int32, Int32))

Sets the range of the z axis.

Source
zrange
Source