class Ishi::Gnuplot::Chart

Overview

A chart is a collection of plots and related metadata.

Defined in:

ishi/gnuplot.cr

Instance Method Summary

Instance Method Detail

def bottom : Bool | Float64 | Int32 | Nil #

[View source]
def boxwidth(boxwidth : Float64) #

Sets the default width of boxes.


[View source]
def boxwidth : Float64? #

[View source]
def clear #

Clears the chart.


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


[View source]
def dim? #

[View source]
def left : Bool | Float64 | Int32 | Nil #

[View source]
def margin(left : Float64 | Bool, right : Float64 | Bool, top : Float64 | Bool, bottom : Float64 | Bool) #

Sets the margin.


[View source]
def margin(left : Int32 | Bool, right : Int32 | Bool, top : Int32 | Bool, bottom : Int32 | Bool) #

Sets the margin.


[View source]
def palette(palette_name : Symbol, colorbox show_colorbox : Bool | Nil = true) #

Sets the palette.


[View source]
def palette_name : Symbol? #

[View source]
def plot(plot) #

Adds a plot to the chart.


[View source]
def plots : Array(Ishi::Gnuplot::Plot) #

[View source]
def right : Bool | Float64 | Int32 | Nil #

[View source]
def show_border(show_border : Bool) #

Shows/hides the chart border.


[View source]
def show_border : Bool? #

[View source]
def show_colorbox(show_colorbox : Bool) #

Shows/hides the chart colorbox.


[View source]
def show_colorbox : Bool? #

[View source]
def show_key(show_key : Bool) #

Shows/hides the chart key.


[View source]
def show_key : Bool? #

[View source]
def show_xtics(show_xtics : Bool) #

Shows/hides the chart xtics.


[View source]
def show_xtics : Bool? #

[View source]
def show_ytics(show_ytics : Bool) #

Shows/hides the chart ytics.


[View source]
def show_ytics : Bool? #

[View source]
def size #

Returns the number of plots.


[View source]
def top : Bool | Float64 | Int32 | Nil #

[View source]
def view(xrot : Float64, zrot : Float64) #

Sets the viewing angle for 3D charts.


[View source]
def view(xrot : Int32, zrot : Int32) #

Sets the viewing angle for 3D charts.


[View source]
def view : {Float64 | Int32, Float64 | Int32}? #

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

Sets the label of the x axis.


[View source]
def xlabel : String? #

[View source]
def xrange(xrange : Range(Float64, Float64) | Range(Int32, Int32)) #

Sets the range of the x axis.


[View source]
def xrange : Range(Float64, Float64) | Range(Int32, Int32) | Nil #

[View source]
def xtics(xtics : Hash(Float64, String)) #

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


[View source]
def xtics : Hash(Float64, String)? #

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

Sets the label of the y axis.


[View source]
def ylabel : String? #

[View source]
def yrange(yrange : Range(Float64, Float64) | Range(Int32, Int32)) #

Sets the range of the y axis.


[View source]
def yrange : Range(Float64, Float64) | Range(Int32, Int32) | Nil #

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

Sets the label of the z axis.


[View source]
def zlabel : String? #

[View source]
def zrange(zrange : Range(Float64, Float64) | Range(Int32, Int32)) #

Sets the range of the z axis.


[View source]
def zrange : Range(Float64, Float64) | Range(Int32, Int32) | Nil #

[View source]