summaryrefslogtreecommitdiff
path: root/jni/ruby/ext/tk/sample/tkextlib/blt/plot1b.rb
blob: 8a3ce8216dd516e17482105ce0a39d9cad747771 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env ruby
require 'tk'
require 'tkextlib/blt'

graph = Tk::BLT::Graph.new.pack
plot = graph.element_create
plot.configure(:linewidth=>0, :label=>'foo',
               :data=>[[1.0, 3.4], [1.1, 2.8], [1.2, 3.1], [1.4, 2.9]].flatten)

Tk.mainloop