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

#[]=, #axis, #color, #pdf, #plug, #show, #title, #x_label, #x_range, #y_label, #y_range

Constructor Details

#initializeDistributionPlot

Returns a new instance of DistributionPlot.



166
167
168
169
# File 'lib/rust-plots.rb', line 166

def initialize
    super()
    @series = []
end

Instance Method Details

#series(data, **options) ⇒ Object



171
172
173
174
175
# File 'lib/rust-plots.rb', line 171

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