[ create a new paste ] login | about

Link: http://codepad.org/DcPZq7lX    [ raw code | fork ]

mogwai.poet - Python, pasted on May 1:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import Tkinter
import Pmw

tk = Tkinter.Tk()
graph = Pmw.Blt.Graph(tk)
graph.pack(expand=1, fill="both")

data = [(10, 0), (0, 0), (20, 5), (5, 5), (25, 10), (15, 10)]
graph.line_create("x", symbol="", trace="decreasing",
                  xdata=tuple(zip(*data)[0]),
                  ydata=tuple(zip(*data)[1]))

graph.xaxis_configure(min=2, max=18)

graph.mainloop()


Create a new paste based on this one


Comments: