Re: Graphs/statistics using wxPython
Jan Danielsson wrote: Hello all, I wanted to plot some statistics, so I wrote a simple wxPython class to do it. Then I realized that I would like to draw bar graphs, so I added that too. Since I'm a complete Python newbie, I haven't done much of it the Python way, I suspect. So, I'm wondering if someone would like to show me some of the tricks I should have used. Trick #1: import matplotlib ;-) -- Robert Kern [EMAIL PROTECTED] In the fields of hell where the grass grows high Are the graves of dreams allowed to die. -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list
Re: Graphs/statistics using wxPython
Robert Kern wrote: I wanted to plot some statistics, so I wrote a simple wxPython class to do it. Then I realized that I would like to draw bar graphs, so I added that too. Since I'm a complete Python newbie, I haven't done much of it the Python way, I suspect. So, I'm wondering if someone would like to show me some of the tricks I should have used. Trick #1: import matplotlib Oh. :-) That's a pretty neat trick -- now can you make my embarrassment go away? I did do a quick search to see if anyone had done anything similar; but I guess I wasn't using the right keywords. ;-) You may point and laugh. Damn, that's a neat toolkit! Thanks for pointing me to it! -- http://mail.python.org/mailman/listinfo/python-list
Re: Graphs/statistics using wxPython
Jan Danielsson wrote: Robert Kern wrote: Trick #1: import matplotlib Oh. :-) That's a pretty neat trick -- now can you make my embarrassment go away? I did do a quick search to see if anyone had done anything similar; but I guess I wasn't using the right keywords. ;-) You may point and laugh. Damn, that's a neat toolkit! Thanks for pointing me to it! It's okay. Just about every Pythonista in the sciences has, at one time or another, started a plotting library. It's a rite of passage. Welcome to the club. :-) -- Robert Kern [EMAIL PROTECTED] In the fields of hell where the grass grows high Are the graves of dreams allowed to die. -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list
Re: Graphs/statistics using wxPython
Jan Danielsson wrote: Robert Kern wrote: [---] It's okay. Just about every Pythonista in the sciences has, at one time or another, started a plotting library. It's a rite of passage. Welcome to the club. :-) Question: I need to install SciPy in order to use matplotlib, No you don't. but on the download page I see that there are versions for Python 2.2.x and 2.3.x. I use 2.4.1 -- will bad things happen if I try to use the build for 2.3.x? Yes. Scipy has many extension modules; such modules built for 2.3.x won't work for 2.4.x, etc. -- Robert Kern [EMAIL PROTECTED] In the fields of hell where the grass grows high Are the graves of dreams allowed to die. -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list
Re: Graphs/statistics using wxPython
Robert Kern wrote: [---] It's okay. Just about every Pythonista in the sciences has, at one time or another, started a plotting library. It's a rite of passage. Welcome to the club. :-) Question: I need to install SciPy in order to use matplotlib, No you don't. Ah.. I misread. I read http://matplotlib.sourceforge.net/installing.html, the section which describes what enthought python contains, and thought it meant this is relevant to matplot lib. but on the download page I see that there are versions for Python 2.2.x and 2.3.x. I use 2.4.1 -- will bad things happen if I try to use the build for 2.3.x? Yes. Scipy has many extension modules; such modules built for 2.3.x won't work for 2.4.x, etc. So, for future reference: I should *never* mix x and y versions in verion: x.y.z. I've wondered why there are versions of libraries for different versions of Python.. -- http://mail.python.org/mailman/listinfo/python-list
Re: Graphs/statistics using wxPython
Jan Danielsson wrote: So, for future reference: I should *never* mix x and y versions in verion: x.y.z. I've wondered why there are versions of libraries for different versions of Python.. For packages with extension modules at least. Python maintains binary compatibility between micro-releases (i.e. different z). -- Robert Kern [EMAIL PROTECTED] In the fields of hell where the grass grows high Are the graves of dreams allowed to die. -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list