Class: Rust::Plots::DistributionPlot

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

Direct Known Subclasses

BoxPlot, DensityPlot

Instance Method Summary collapse

Methods inherited from BasePlot

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

Constructor Details

#initializeDistributionPlot

Returns a new instance of DistributionPlot.



5
6
7
8
# File 'lib/rust/plots/distribution-plots.rb', line 5

def initialize
    super()
    @series = []
end

Instance Method Details

#series(data, **options) ⇒ Object



10
11
12
13
14
# File 'lib/rust/plots/distribution-plots.rb', line 10

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