Re: [Tutor] pylab Failure

2008-10-11 Thread Alan Gauld
"Wayne Watson" <[EMAIL PROTECTED]> wrote Here's the code. If I just execute it, the terminal window opens briefly and disappears. What happens if you execute it from a terminal window? That way any error messages will be visible. What happens if you ruin it from inside IDLE or Pythonwin? TH

[Tutor] pylab Failure

2008-10-11 Thread Wayne Watson
Title: Signature.html I copied the following code from a matplotlib tutorial, and it fails. I'm using python 2.4 on Win XP. It's matplotlib-0.98.3.win32-py2.4exe. With or without the finish function it fails in IDLE with. Here's the code. If I just execute it, the terminal window opens brie

Re: [Tutor] Critiquing My Program

2008-10-11 Thread Wayne Watson
Title: Signature.html Unfortunately, I need to stick to 2.4 or possibly 2.5 for awhile. I posted the code. That's a clever link. It appears it's an easy way to put something on the web that might be sharable with others. This is text, but images would be good. I find it useful to post images

Re: [Tutor] Critiquing My Program

2008-10-11 Thread Wayne Watson
Title: Signature.html Here's where the code resides Kent Johnson wrote: On Sat, Oct 11, 2008 at 4:06 PM, Wayne Watson <[EMAIL PROTECTED]> wrote: Unfortunately, I need to stick to 2.4 or possibly 2.5 for awhile. I posted the code. Posting the URL to the tutor list would

Re: [Tutor] Critiquing My Program

2008-10-11 Thread Kent Johnson
On Sat, Oct 11, 2008 at 12:28 PM, Wayne Watson <[EMAIL PROTECTED]> wrote: > Perhaps at the top of my list is the use of self. I sure get tired of using > it. Maybe there's a short cut. No, no short cut. You can use a different name than 'self', for example 's', but I don't recommend it; 'self' is

[Tutor] Critiquing My Program

2008-10-11 Thread Wayne Watson
Title: Signature.html I'm writing my second Python program. It's about 120 lines right now. In this round (#2), I've begun to use OOP too help matters.  Round #1 was about changing file names to better reflect time/date data. The program examines meteor track data. Basically, it tries to examin

Re: [Tutor] Tuple of Tuples

2008-10-11 Thread W W
On Sat, Oct 11, 2008 at 9:53 AM, Wayne Watson <[EMAIL PROTECTED]> wrote: > I would like to create a tuple of tuples. As I read (x,y) pairs I would like > to "add" them to others. In the example below, I seem to be picking up () > each time I augment the tuple t. > === t = () t

[Tutor] Tuple of Tuples

2008-10-11 Thread Wayne Watson
Title: Signature.html I would like to create a tuple of tuples. As I read (x,y) pairs I would like to "add" them to others. In the example below, I seem to be picking up () each time I augment the tuple t. === >>> t = () >>> t = t,(0,1) >>> t ((), (0, 1)) >>> t,(2,3) (((), (0, 1)),

Re: [Tutor] Running Two Versions of Python on the Same PC

2008-10-11 Thread Kent Johnson
On Sat, Oct 11, 2008 at 8:52 AM, Wayne Watson <[EMAIL PROTECTED]> wrote: > Is it possible to do as in Subject on Win XP? Say, 2.4 and 2.5. Yes, different 2.x versions of Python will peacefully coexist. virtualenv is useful for setting up separate working environments but it is not needed if you ju

Re: [Tutor] Running Two Versions of Python on the Same PC

2008-10-11 Thread Noufal Ibrahim
Wayne Watson wrote: Is it possible to do as in Subject on Win XP? Say, 2.4 and 2.5. -- You can create virtual installations of Python which might work for you. I do it for custom package installation etc. The virtualenv pakcage is what I use. http://pypi.python.org/pypi/virtualenv -- ~noufal

[Tutor] Running Two Versions of Python on the Same PC

2008-10-11 Thread Wayne Watson
Title: Signature.html Is it possible to do as in Subject on Win XP? Say, 2.4 and 2.5. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time) "Truth is mighty and will prevail. There is not

Re: [Tutor] Text Scatter Plots?

2008-10-11 Thread Kent Johnson
On Sat, Oct 11, 2008 at 2:03 AM, Wayne Watson <[EMAIL PROTECTED]> wrote: > Hi, I'm finally in a position where I might want to use matplotlib. I looked > at the site but I'm not sure there's a download for 2.4. This page shows matplotlib-0.98.3.win32-py2.4.exe: http://sourceforge.net/project/showf

Re: [Tutor] Iterating two one dimensional lists to create a multidemsional array

2008-10-11 Thread W W
On Fri, Oct 10, 2008 at 10:59 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: > On Fri, Oct 10, 2008 at 10:45 PM, S Potter <[EMAIL PROTECTED]> wrote: > >> poem ={ ['roses','are red'], >> ['violets','are blue'], >> ['sugar','are sweet'] >> ['so','are you'] } An