Class: Rust::Plots::DistributionPlot

Inherits:
BasePlot show all
Defined in:
lib/rust-plots.rb

Direct Known Subclasses

BoxPlot, DensityPlot

Instance Method Summary collapse

Methods inherited from BasePlot

#[]=, #_add_renderable, #_do_not_override_options!, #axis, #color, #grid, #pdf, #show, #title, #x_label, #x_range, #y_label, #y_range

Constructor Details

#initializeDistributionPlot

Returns a new instance of DistributionPlot.



177
178
179
180
# File 'lib/rust-plots.rb', line 177

def initialize
    super()
    @series = []
end

Instance Method Details

#series(data, **options) ⇒ Object



182
183
184
185
186
# File 'lib/rust-plots.rb', line 182

def series(data, **options)
    @series << [data, options]
    
    return self
end