Method: UnicodePlot::Boxplot#add_series!
- Defined in:
- lib/unicode_plot/boxplot.rb
#add_series!(data) ⇒ Object
37 38 39 40 41 42 |
# File 'lib/unicode_plot/boxplot.rb', line 37 def add_series!(data) mi, ma = data.minmax @data << data.percentile([0, 25, 50, 75, 100]) @min_x = [mi, @min_x].min @max_x = [ma, @max_x].max end |