class
UnicodePlot::HeatmapGraphics
- UnicodePlot::HeatmapGraphics
- UnicodePlot::GraphicsArea
- Reference
- Object
Overview
HeatmapGraphics renders a 2D color matrix using half-block characters (▄). Each display row combines two data rows: upper half (bg) and lower half (fg). This matches Julia's HeatmapCanvas layout.
Defined in:
unicode_plot/graphics/heatmap_graphics.crConstructors
Instance Method Summary
- #blank : Char
- #colormap_fn : Proc(Float64, Float64, Float64, UInt32)
- #data : Array(Array(Float64))
- #ncols : Int32
- #nrows : Int32
-
#print_row(io : IO, row : Int32, use_color : Bool) : Nil
Render one display row using two data rows packed as half-block characters.
- #visible? : Bool
- #yflip? : Bool
- #zmax : Float64
- #zmin : Float64
Instance methods inherited from class UnicodePlot::GraphicsArea
blank : Char
blank,
ncols : Int32
ncols,
nrows : Int32
nrows,
preprocess(io : IO) : GraphicsArea ->
preprocess,
print_row(io : IO, row : Int32, use_color : Bool) : Nil
print_row,
to_s(io : IO) : Nil
to_s,
visible? : Bool
visible?
Constructor Detail
def self.new(data : Array(Array(Float64)), colormap_fn : Proc(Float64, Float64, Float64, UInt32), zmin : Float64, zmax : Float64, visible : Bool = true, yflip : Bool = false)
#
Instance Method Detail
def print_row(io : IO, row : Int32, use_color : Bool) : Nil
#
Render one display row using two data rows packed as half-block characters. Row 1 = topmost display row. Each display row uses pixel rows 2r-1 and 2r (adjusted for odd char_height), matching Julia's HeatmapCanvas.print_row.