class UnicodePlot::BoxplotGraphics

Overview

Five-number summary per box, matching Julia UnicodePlots BoxplotGraphics.

Defined in:

unicode_plot/graphics/boxplot_graphics.cr

Constructors

Instance Method Summary

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(ncols : Int32, xmin : Float64, xmax : Float64, visible : Bool = true) #

[View source]

Instance Method Detail

def add_box!(data : Array(Float64), color : UInt32) : self #

[View source]
def blank : Char #

[View source]
def boxes : Array(BoxData) #

[View source]
def ncols : Int32 #

[View source]
def nrows : Int32 #

[View source]
def preprocess(io : IO) : GraphicsArea -> #
Description copied from class UnicodePlot::GraphicsArea

Preprocessing hook (returns cleanup proc). Override in subclasses that need it.


[View source]
def print_row(io : IO, row : Int32, use_color : Bool) : Nil #

Rendering matches Julia UnicodePlots print_row for BoxplotGraphics. Each box occupies 3 rows (top, mid, bot). Characters per sub-row: top: ╷ ┌─┬─┐ ╷ mid: ├──┤ │ ├──┤ bot: ╵ └─┴─┘ ╵


[View source]
def visible? : Bool #

[View source]
def xmax : Float64 #

[View source]
def xmax=(xmax : Float64) #

[View source]
def xmin : Float64 #

[View source]
def xmin=(xmin : Float64) #

[View source]