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

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

Tk.mainloop