UnicodePlot::DensityCanvas
Inherits UnicodePlot::Canvas < UnicodePlot::GraphicsArea < Reference < Object
2D point-density canvas. Each character cell accumulates a hit count; at render time the count is normalised to the 5-level density palette. Matches Julia UnicodePlots DensityCanvas: y_pixel_per_char=2, x_pixel_per_char=1.
Constructors
new(char_height : Int32, char_width : Int32, *, visible : Bool = true, blend : Bool = true, origin_y : Float64 = 0.0, origin_x : Float64 = 0.0, height : Float64 = 1.0, width : Float64 = 1.0, yflip : Bool = false, xflip : Bool = false, yscale : Symbol | Proc(Float64, Float64) = :identity, xscale : Symbol | Proc(Float64, Float64) = :identity, dscale : Symbol | Proc(Float64, Float64) = :identity)
SourceInstance methods
blank
SourceMap grid value to display character. Must be overridden by subclasses.
Preprocessing hook (returns cleanup proc). Override in subclasses that need it.
x_pixel_per_char
Sourcey_pixel_per_char
Source