class Rust::Plots::DensityPlot
Protected Instance Methods
_show()
click to toggle source
# File lib/rust-plots.rb, line 260 def _show() first = true @series.each do |data, options| Rust["plotter.series"] = data if first first = false command = "plot" else command = "lines" end function = Rust::Function.new(command) function.options = self._augmented_options({"col" => options[:color]}) function.arguments << Rust::Variable.new("density(plotter.series)") function.call end return self end