class GRM::Plot

Overview

Crystal-style Plot class for method chaining

Defined in:

grm/plot.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def algorithm(value : String) #

[View source]
def barplot #

[View source]
def build_series_args : LibGRM::ArgsT #

Build args for plotting (series only)


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

[View source]
def color : String | Nil #

[View source]
def contour(m : Int32 | Nil = nil, n : Int32 | Nil = nil) #

[View source]
def contourf(m : Int32 | Nil = nil, n : Int32 | Nil = nil) #

[View source]
def data(x : Array(Number), y : Array(Number), z : Array(Number)) #

[View source]
def data(x : Array(Number), y : Array(Number)) #

[View source]
def data(x : Array(Number)) #

Data setting methods (chainable)


[View source]
def data2d(x : Array(Number), y : Array(Number), z : Array(Array(Number))) #

2D data helper for surface/contourf/heatmap/shade (z: rows x cols)


[View source]
def data_image(c : Array(Array(Number))) #

[View source]
def data_volume(c : Array(Array(Array(Number)))) #

[View source]
def data_z(z : Array(Array(Number))) #

[View source]
def heatmap(m : Int32 | Nil = nil, n : Int32 | Nil = nil) #

[View source]
def hexbin #

[View source]
def histogram(bins : Int32 = 50) #

[View source]
def imshow #

[View source]
def isosurface #

[View source]
def isovalue(value : Number) #

[View source]
def kind : String | Nil #

[View source]
def plot3 #

[View source]
def polar #

[View source]
def polarhistogram #

[View source]
def render #

[View source]
def save(path : String) #

[View source]
def scatter #

Plot type methods (chainable)


[View source]
def scatter3 #

[View source]
def shade(m : Int32 | Nil = nil, n : Int32 | Nil = nil) #

[View source]
def show #

Rendering and output methods


[View source]
def stairs #

[View source]
def stem #

[View source]
def surface(m : Int32 | Nil = nil, n : Int32 | Nil = nil) #

[View source]
def title(text : String) #

Label methods (chainable)


[View source]
def to_html(plot_id : String | Nil = nil) : String #

[View source]
def to_json : String #

[View source]
def volume #

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

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

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

[View source]