module UnicodePlot::Contour

Defined in:

unicode_plot/contour.cr

Constant Summary

E = 4_u8
EDGE_LUT = [SW, SE, EW, NE, 0_u8, NS, NW, NW, NS, 0_u8, NE, EW, SE, SW]
EW = E | W
N = 1_u8
NE = N | E
NESW = NE | 16_u8
NS = N | S
NW = N | W
NWSE = NW | 16_u8
S = 2_u8
SE = S | E
SW = S | W
W = 8_u8

Class Method Summary

Class Method Detail

def self.contour(x : Array(Float64), y : Array(Float64), z : MatrixView(T), level : Float64) : ContourLevel forall T #

[View source]
def self.contour_levels(zmin : Float64, zmax : Float64, n : Int32) : Array(Float64) #

[View source]
def self.contour_levels(matrix : MatrixView(T), n : Int32) : Array(Float64) forall T #

[View source]
def self.contours(x : Array(Float64), y : Array(Float64), z : MatrixView(T), levels : Int32) : ContourCollection forall T #

[View source]
def self.contours(x : Array(Float64), y : Array(Float64), z : MatrixView(T), levels : Array(Float64)) : ContourCollection forall T #

[View source]