Error when using TkAgg backend

Hi,

I use matplotlib frequenctly on Python 2.4.x. . Recently changed to Python 2.5.1 (upgraded to numpy 1.0.4, matplotlib 0.91.2, scipy 0.6).

The Tkinter graphics does not work anymore. I tried the code snippet below and got a blank window and message box:

python.exe unknown software exception.

I use Windows XP SP2.

Any comments on this are very much appreciated.

Best regards

Michael

···

import pylab as py
import numpy as num

t = num.arange(0.0, 2.0, 0.01)
s = num.sin(2num.pit)

py.figure()
py.plot(t, s, linewidth=1.0)

py.xlabel(‘time (s)’)
py.ylabel(‘voltage (mV)’)
py.title(‘About as simple as it gets, folks’)
py.grid(True)

py.show()

Did you get a response on this?
(Sorry if I missed it.)

I see no problem on a similar setup with
a slightly older Matplotlib (0.90.1).

Cheers,
Alan Isaac

···

On Tue, 29 Jan 2008, Michael Biester apparently wrote:

unknown software exception

Michael Biester wrote:

Hi,

I use matplotlib frequenctly on Python 2.4.x. . Recently changed to
Python 2.5.1 (upgraded to numpy 1.0.4, matplotlib 0.91.2, scipy 0.6).

The Tkinter graphics does not work anymore. I tried the code snippet
below and got a blank window and message box:

python.exe unknown software exception.

I use Windows XP SP2.

Any comments on this are very much appreciated.
Hello Michael,

I tried your sample code on my system and it worked as expected. I am
using a slightly older version of numpy (‘1.0.3.1’).

Here is my system:

Microsoft Windows XP [Version 5.1.2600]

(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\jim.vickroy\My Documents\projects>python

Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
(Intel)] on win32

Type “help”, “copyright”, “credits” or “license” for more information.

import numpy

numpy.version

‘1.0.3.1’

import matplotlib

matplotlib.version

‘0.91.2’

– jv

···

http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/Matplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-users