File: issue32.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 (11 lines) | stat: -rwxr-xr-x 247 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/bin/env ruby

$LOAD_PATH << "#{__dir__}/../lib"
require "unicode_plot"

ys = [261, 272, 277, 283, 289, 294, 298, 305, 309, 314, 319, 320, 322, 323, 324]

xs = ys.size.times.to_a

UnicodePlot.lineplot(xs, ys, height: 26, ylim: [0, 700]).render