Newbie Looking for Scientific Python TkWidgets Example
Johnny Lin
air_jlin at yahoo.com
Thu Mar 6 12:55:10 EST 2003
hi Chad,
thanks much for your help! here's the code i was
trying to get work. am just trying to plot a set of 4
points (array c; have left out the import statements):
c=[[1,2],[3,4],[3,5],[6,8]]
global root
root=Tkinter.Tk()
line=Scientific.TkWidgets.TkPlotCanvas.PolyLine(c,width=10,color='black')
pts=Scientific.TkWidgets.TkPlotCanvas.PolyMarker(c)
plot=Scientific.TkWidgets.TkPlotCanvas.PlotCanvas(root,100,100)
plot.draw(line,xaxis='automatic',yaxis='automatic')
plot.draw(pts,xaxis='automatic',yaxis='automatic')
plot.pack
root.mainloop()
thanks again for your help!
best,
-Johnny
--- Chad Netzer <cnetzer at mail.arc.nasa.gov> wrote:
> On Tue, 2003-03-04 at 15:39, Johnny Lin wrote:
>
> > Does anyone have sample code of using Scientific
> Python TkWidgets to
> > make a line plot? I'm trying to figure out what
> I'm doing wrong and
> > can't find any sample code online.
>
> How about you post your code, and we can try to see
> what is wrong with
> it (if it is long ocde, perhaps you could post a
> link)
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
More information about the Python-list
mailing list