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 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 plot(plot) #

Adds a plot to the chart.


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

[View source]
def size #

Returns the number of plots.


[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 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]