class Ishi::Base
- Ishi::Base
- Reference
- Object
Direct Known Subclasses
Defined in:
ishi.crInstance Method Summary
-
#plot(ydata : Indexable(Y), title : String | Nil = nil, style : Symbol = :lines) forall Y
Plots
y
usingx
ranging from0
toN-1
. -
#plot(expression : String, title : String | Nil = nil, style : Symbol | Nil = nil)
Plots a mathematical expression.
-
#plot(xdata : Indexable(X), ydata : Indexable(Y), title : String | Nil = nil, style : Symbol = :lines) forall X, Y
Plots
x
andy
. -
#plot(xdata : Indexable(X), ydata : Indexable(Y), zdata : Indexable(Z), title : String | Nil = nil, style : Symbol = :points) forall X, Y, Z
Plots
x
,y
andz
. -
#show(**options)
Shows the chart.
-
#xlabel(xlabel : String)
Sets the label of the
x
axis. -
#xrange(xrange : Range(Float64, Float64) | Range(Int32, Int32))
Sets the range of the
x
axis. -
#ylabel(ylabel : String)
Sets the label of the
y
axis. -
#yrange(yrange : Range(Float64, Float64) | Range(Int32, Int32))
Sets the range of the
y
axis. -
#zlabel(zlabel : String)
Sets the label of the
z
axis. -
#zrange(zrange : Range(Float64, Float64) | Range(Int32, Int32))
Sets the range of the
z
axis.
Instance Method Detail
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
.
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
.
Plots x
and y
.
title is the title of the plot. style is the drawing
style. Supported values include :boxes
, :lines
and
:points
.
Plots x
, y
and z
.
title is the title of the plot. style is the drawing
style. Supported values include :boxes
, :lines
and
:points
.