class Ishi::Base
- Ishi::Base
- Reference
- Object
Direct Known Subclasses
Defined in:
ishi.crInstance Method Summary
-
#plot(xdata : Indexable(T), ydata : Indexable(U), zdata : Indexable(V), format : String | Nil = nil, *, title : String | Nil = nil, style : Symbol = :points, **options) forall T, U, V
Plots
x
,y
andz
. -
#plot(ydata : Indexable(Y), format : String | Nil = nil, *, title : String | Nil = nil, style : Symbol = :lines, **options) forall Y
Plots
y
usingx
ranging from0
toN-1
. -
#plot(xdata : Indexable(M), ydata : Indexable(N), format : String | Nil = nil, *, title : String | Nil = nil, style : Symbol = :lines, **options) forall M, N
Plots
x
andy
. -
#plot(expression : String, format : String | Nil = nil, *, title : String | Nil = nil, style : Symbol | Nil = nil, **options)
Plots a mathematical expression.
-
#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 x
, y
and z
.
title is the title of the plot. style is the drawing
style. Supported styles include :surface
, :circles
,
:lines
, :points
and :dots
.
Plots y
using x
ranging from 0
to N-1
.
title is the title of the plot. style is the drawing
style. Supported styles include :boxes
, :lines
, :points
,
:linespoints
and :dots
.
Plots x
and y
.
title is the title of the plot. style is the drawing
style. Supported styles include :boxes
, :lines
, :points
,
:linespoints
and :dots
.
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 styles include :lines
and :points
.