File: densityplot.rb

package info (click to toggle)
ruby-unicode-plot 0.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,492 kB
  • sloc: ruby: 2,871; makefile: 4
file content (10 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
module UnicodePlot
  module_function def densityplot(x, y, color: :auto, grid: false, name: "", **kw)
    plot = GridPlot.new(x, y, :density, grid: grid, **kw)
    scatterplot!(plot, x, y, color: color, name: name)
  end

  module_function def densityplot!(plot, x, y, **kw)
    scatterplot!(plot, x, y, **kw)
  end
end