class Ishi::Base

Direct Known Subclasses

Defined in:

ishi.cr

Instance Method Summary

Instance Method Detail

def plot(ydata : Indexable(Y), title : String | Nil = nil, style : Symbol = :lines) forall Y #

Plots y using x ranging from 0 to N-1.

title is the title of the plot. style is the drawing style. Supported values include :boxes, :lines and :points.


[View source]
def plot(expression : String, title : String | Nil = nil, style : Symbol | Nil = nil) #

Plots a mathematical expression.

plot("sin(x) * cos(x)")
plot("3.5 * x + 1.5")

For information on gnuplot mathematical expressions, see: Expressions.

title is the title of the plot. style is the drawing style. Supported values include :lines and :points.


[View source]
def plot(xdata : Indexable(X), ydata : Indexable(Y), title : String | Nil = nil, style : Symbol = :lines) forall X, Y #

Plots x and y.

title is the title of the plot. style is the drawing style. Supported values include :boxes, :lines and :points.


[View source]
def plot(xdata : Indexable(X), ydata : Indexable(Y), zdata : Indexable(Z), title : String | Nil = nil, style : Symbol = :points) forall X, Y, Z #

Plots x, y and z.

title is the title of the plot. style is the drawing style. Supported values include :boxes, :lines and :points.


[View source]
def show(**options) #

Shows the chart.


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

Sets the label of the x axis.


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

Sets the range of the x axis.


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

Sets the label of the y axis.


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

Sets the range of the y axis.


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

Sets the label of the z axis.


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

Sets the range of the z axis.


[View source]