Re: [Matplotlib-users] update: BUG - axes problem update

2008-03-24 Thread Michael Droettboom
Simson Garfinkel wrote:
 1. Moving to matplotlib-0.91.2 solved the problem with PDF generation  
 on log axes.

 2. Installing matplotlib-0.91.2 on Linux required installing these  
 packages first:
   * freetype-devel
   * libpng-devel

 (Those packages were NOT installed automatically by easy_install)
   
Yeah -- easy_install doesn't address installing anything that's non-Python.  
It's a source of ranging debate about easy_install vs. the distribution 
packaging systems.

Mike

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Runtime Error

2008-03-24 Thread Chris Withers
Hi Brook,

Brook Lin wrote:
 raise RuntimeError('%s' is not a writable dir; you must set
 %s/.matplotlib to be a writable dir.  You can also set environment variable
 MPLCONFIGDIR to any writable directory where you want matplotlib data stored
 %h)

This is the crucial bit.

Looks like you've set MPLCONFIGDIR to a read-only dir, or the 
.matplotlib in the current dir or .matplotlib in your home directory 
aren't writeable by the user running your python script. (I'm doing a 
bit of guesswork here...)

What is it that you're trying to do?

cheers,

Chris

-- 
Simplistix - Content Management, Zope  Python Consulting
- http://www.simplistix.co.uk

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Compiler error on OS X 10.5.2 in agg

2008-03-24 Thread Zachary Pincus
 Zachary Pincus wrote:

 Can you tell me where you specified the -Os option to gcc to escape
 the problem?

 So the compile that command that failed is printed right above the
 error message it generated. (The long line that starts  with
 'gcc' ...). I just copied this command, edited the -O3 to an -Os, and
 pasted that command-line back into the terminal. Total low-tech hack,
 as I didn't want to much with the setup.py file to fix compile flags
 on a per-file basis.

 After that file is compiled manually, you can re-run 'python setup.py
 build', and it will start up at the next step after the error.

 I got the same error in another step, which was a bit trickier to  
 fix,
 because for some reason, src/_image.cpp gets copied to src/image.cpp
 on a temporary basis, and then compiled. (I presume the file isn't
 also modified?) But after the compile errors out, the copy is  
 deleted,
 so just pasting in the offending gcc command doesn't work. So I had  
 to
 manually copy src/_image.cpp to scr/image.cpp, and then paste in the
 modified gcc command.

 Ugh! I'd really love some help reducing this to a test case that I  
 can
 send to Apple.

 I've got the same error(s) in the same situation (10.5.2). I haven't
 seen it any other context nor have had any success in reducing to a  
 test
 case, alas. Could this have to do with picking up libraries (from fink
 or elsewhere) and/or different compiler versions? I've got XCode 3 and
 gcc 4.0. (I've actually got the apple 4.2 preview release as well but
 that craps out even earlier, I assume due to library version  
 mismatches...)

I'm pretty sure what I'm seeing isn't from Fink or other library  
versions -- this was on a pretty clean 10.5 install. I'm using a  
custom-built Python 2.5.2 instead of Apple's, so that required  
installing a new version of readline, but other than that, the system  
is plain vanilla.

Has nobody else built matplotlib from source on 10.5.2 lately?

Zach




 Zach


 On Mar 13, 2008, at 12:16 PM, Stephane Raynaud wrote:

 Hi,

 I got the same problem.
 Can you tell me where you specified the -Os option to gcc to escape
 the problem?


 On Mon, Mar 10, 2008 at 4:35 AM, Zachary Pincus [EMAIL PROTECTED]
 wrote:
 Hello,

 I just tried to compile the SVN head of matplotlib (r4994) from
 source
 on OS X 10.5.2 (with source builds of python 2.5.2 and the SVN head
 of
 numpy), and ran into an internal compiler error in the agg code.
 (pkgconfig 0.23 and wxPython 2.8.7.1 also present and accounted  
 for.)

 Here's the compile line and error:
 building 'matplotlib.backends._backend_agg' extension
 gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-
 fused-
 madd -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
 prototypes -I/Library/Frameworks/Python.framework/Versions/2.5/ 
 lib/
 python2.5/site-packages/numpy/core/include -I/usr/X11/include/
 libpng12 -I/usr/local/include -I/usr/include -I/usr/X11R6/ 
 include -
 I. -I/Library/Frameworks/Python.framework/Versions/2.5/lib/
 python2.5/
 site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/usr/
 X11/include/freetype2 -I/usr/X11/include -I/usr/local/include -I/
 usr/
 include -I/usr/X11R6/include -I. -I/Library/Frameworks/
 Python.framework/Versions/2.5/include/python2.5 -c src/ 
 _image.cpp -o
 build/temp.macosx-10.4-i386-2.5/src/_image.o
 cc1plus: warning: command line option -Wstrict-prototypes is  
 valid
 for C/ObjC but not for C++
 src/_image.cpp: In member function 'Py::Object
 _image_module::from_images(const Py::Tuple)':
 src/_image.cpp:842: error: insn does not satisfy its constraints:
 (insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set
 (mem:QI (plus:SI (reg/f:SI 6 bp)
  (const_int -280 [0xfee8])) [0 SR.2969+0
 S1 A8])
  (reg:QI 5 di)) 56 {*movqi_1} (nil)
  (nil))
 src/_image.cpp:842: internal compiler error: in
 reload_cse_simplify_operands, at postreload.c:391
 Please submit a full bug report, with preprocessed source if
 appropriate.
 See URL:http://developer.apple.com/bugreporter for instructions.
 This seems to be an agg and OS X error; it's cropped up here:
 http://trac.osgeo.org/mapserver/ticket/2368
 and John Hunter reported it on the agg list here:
 http://article.gmane.org/gmane.comp.graphics.agg/3963

 Unfortunately, the error appears to either not have been fixed by  
 the
 10.5.1 update, as suggested in the email thread cited above, or the
 error re-appeared in 10.5.2.


 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


-
This SF.net email is sponsored by: Microsoft

Re: [Matplotlib-users] Problem with matplotlib and pdflatex

2008-03-24 Thread Alex Coventry

 I believe I have fixed the problem in the latest svn versions, both on
 the maintenance branch and on the trunk. Please try the latest version

Thanks for your help, Jouni.  That seems to have fixed the problem.

Best,
Alex

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Install problem on Leopard

2008-03-24 Thread Christopher Barker
Andrew Charles wrote:
 Yes it was the matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg I tried to
 install. I've posted the entire easy_install output below.

Thanks. First, a note:

There is confusion here. If I have it right, the OP is trying to install 
the BINARY egg that is up on sourceforge into the MacPython/Python.org 
Python2.5 running on OS-X 10.5. This should work. However:

 Processing matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg

...

 Installed 
 /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg

So this looks like it has installed the binary egg.

 Processing dependencies for matplotlib==0.91.2
 Searching for matplotlib==0.91.2

But now it has determined that it has mpl 0.91.2 as a dependency, which 
is just plain odd -- I really don't get setuptools!

 Processing matplotlib-0.91.2.tar.gz

so it has downloaded the tarball, and is trying to build it.

   wxPython: no
 * wxPython not found

By the way I thought wxPython was only a run-time dependency now?

 In file included from /usr/X11/include/freetype2/freetype/freetype.h:41,

some freetype warnings -- should it work with Apple-supplied freetype? 
it didn't used to , but it looks like these are only warnings now.

 ld: in /sw/lib/libJPEG.dylib, file is not of required architecture for
 architecture ppc

Now we've got a problem with a fink (or is it darwinports?) libJPEG, 
'cause it's not Universal -- but why is it finding that libjpeg?

So:

1) Have you tried aborting when it starts downloading? Maybe the binary 
is installed?

2) Why is it trying to download and build from source? Does anyone get 
setuptools enough to know?

3) Maybe we should just distribute a binary *.mpkg instead. I've seen 
talk of a way to install a single binary that could work with either 
Apple's or MacPython's 2.5 -- I think it involved a symlink to a shared 
place to put packages -- anyone know if that actually works?

-Chris




-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/ORR(206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

[EMAIL PROTECTED]

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Runtime Error

2008-03-24 Thread Brook Lin

After installation, I only ran a simple code attached below. I found that I
got this run time error from from pylab import *.

I did go through what Mark Hamilton posted:
Index: cutils.py
===
--- cutils.py (revision 5001)
+++ cutils.py (working copy)
@@ -79,7 +79,7 @@
 raise RuntimeError(\
 '%s' is not a writable dir; you must set %s/.matplotlib to be a writable
dir.
 You can also set environment variable MPLCONFIGDIR to any writable
directory
-where you want matplotlib data stored %h)
+where you want matplotlib data stored %(p,h))
 else:
 if not is_writable_dir(h):
 raise RuntimeError(Failed to create %s/.matplotlib; consider
setting MPLCONFIGDIR to a writable directory for matplotlib configuration
data%h) 

I changed where you want matplotlib data stored %h) into where you want
matplotlib data stored %(p,h)). However, I got the same error after
changes. Did I do right? 

I install matplotlib by:
python setup.py build
python setup.py install
How can I install it by svn trunk?

Appreciated,
Brook

=
from pylab import *
from matplotlib import *
from pylab import figure, close, show, nx
from matplotlib.figure import Figure
import time

x=arange(10)
y=[2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
x2=arange(20)
y2=arange(20)

f=figure()   
hold(True)
plot(x,y)
plot(x2,y2)
grid()
pylab.show()
time.sleep(3)
pylab.close(f)
===
-- 
View this message in context: 
http://www.nabble.com/Runtime-Error-tp16239554p16257231.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Install problem on Leopard

2008-03-24 Thread Charlie Moad

 3) Maybe we should just distribute a binary *.mpkg instead. I've seen
 talk of a way to install a single binary that could work with either
 Apple's or MacPython's 2.5 -- I think it involved a symlink to a shared
 place to put packages -- anyone know if that actually works?


I agree on the mpkg, but the last few times I have tried bdist_mpkg it has
died miserably on mpl.

- Charlie
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Compiler error on OS X 10.5.2 in agg

2008-03-24 Thread Charlie Moad
On Mon, Mar 24, 2008 at 10:01 AM, Zachary Pincus [EMAIL PROTECTED]
wrote:

  Zachary Pincus wrote:
 
  Can you tell me where you specified the -Os option to gcc to escape
  the problem?
 
  So the compile that command that failed is printed right above the
  error message it generated. (The long line that starts  with
  'gcc' ...). I just copied this command, edited the -O3 to an -Os, and
  pasted that command-line back into the terminal. Total low-tech hack,
  as I didn't want to much with the setup.py file to fix compile flags
  on a per-file basis.
 
  After that file is compiled manually, you can re-run 'python setup.py
  build', and it will start up at the next step after the error.
 
  I got the same error in another step, which was a bit trickier to
  fix,
  because for some reason, src/_image.cpp gets copied to src/image.cpp
  on a temporary basis, and then compiled. (I presume the file isn't
  also modified?) But after the compile errors out, the copy is
  deleted,
  so just pasting in the offending gcc command doesn't work. So I had
  to
  manually copy src/_image.cpp to scr/image.cpp, and then paste in the
  modified gcc command.
 
  Ugh! I'd really love some help reducing this to a test case that I
  can
  send to Apple.
 
  I've got the same error(s) in the same situation (10.5.2). I haven't
  seen it any other context nor have had any success in reducing to a
  test
  case, alas. Could this have to do with picking up libraries (from fink
  or elsewhere) and/or different compiler versions? I've got XCode 3 and
  gcc 4.0. (I've actually got the apple 4.2 preview release as well but
  that craps out even earlier, I assume due to library version
  mismatches...)

 I'm pretty sure what I'm seeing isn't from Fink or other library
 versions -- this was on a pretty clean 10.5 install. I'm using a
 custom-built Python 2.5.2 instead of Apple's, so that required
 installing a new version of readline, but other than that, the system
 is plain vanilla.

 Has nobody else built matplotlib from source on 10.5.2 lately?


I tried it after seeing your message.  Indeed I got the same internal gcc
failure.  This is a compiler problem the with the gcc on 10.5.2 (and
10.5.1I think).  I found the same error message on many google hits
outside of
matplotlib.  Your suggestion of compiling with -Os for the two problem files
worked fine for me.

- Charlie
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] How to fix Lasso example bug???

2008-03-24 Thread Leonard J Reder
Hello,

What follows is the lasso example code that I am running.  This is the 
example the comes with the matplotlib examples code.  It works fine 
except when one clicks and does not move the mouse.  It seems to hang.
I have traced it down to the self.canvas.widgetlock.locked() call within 
the LassoManager method called onpress.  The onpress method is 
registered as a callback for a button press event.  What I need to know 
is how to determine which widget has the lock and how to release the 
lock before returning from the callback so that everything will continue 
to work.

If anyone knows how to fix this please send example code.

Thanks,

Len


#!/usr/local/bin/python


Simple hacked test case to add fake runs and print out selected point set.

Show how to use a lasso to select a set of points and get the indices
of the selected points.  A callback is used to change the color of the
selected points

This is currently a proof-of-concept implementation (though it is
usable as is).  There will be some refinement of the API and the
inside polygon detection routine.

from matplotlib import widgets
import matplotlib.mlab
from matplotlib import nxutils
from matplotlib import colors
from matplotlib import collections

from matplotlib import pyplot
import numpy
from numpy.random import rand

class Datum:
 colorin = colors.colorConverter.to_rgba('red')
 colorout = colors.colorConverter.to_rgba('green')
 def __init__(self, x, y, run=None, include=False):
 self.x = x
 self.y = y
 self.run = run
 if include:
 self.color = self.colorin
 else:
 self.color = self.colorout


class LassoManager:
 def __init__(self, ax, data):
 self.axes = ax
 self.canvas = ax.figure.canvas
 self.data = data

 self.Nxy = len(data)

 self.facecolors = [d.color for d in data]
 self.xys = [(d.x, d.y) for d in data]
 self.facecolors[50] = (0.0,0.0,0.0,1.0)
 self.collection = collections.RegularPolyCollection(
 fig.dpi, 6, sizes=(100,),
 facecolors=self.facecolors,
 offsets = self.xys,
 transOffset = ax.transData)

 ax.add_collection(self.collection)

 self.cid = self.canvas.mpl_connect('button_press_event', 
self.onpress)

 def callback(self, verts):
 ind = numpy.nonzero(nxutils.points_inside_poly(self.xys, verts))[0]
 print New selection:
 for i in range(self.Nxy):
 if i in ind:
 self.facecolors[i] = Datum.colorin
 print Index=%d, run=%d, xy = (%f,%f) % 
(i,self.data[i].run,self.data[i].x,self.data[i].y)
 else:
 self.facecolors[i] = Datum.colorout

 self.canvas.draw_idle()
 self.canvas.widgetlock.release(self.lasso)
 del self.lasso

 def onpress(self, event):
 print OK1
 print self.canvas.widgetlock.locked()
 if self.canvas.widgetlock.locked():
 return
 print OK2
 if event.inaxes is None:
 return
 print OK3
 self.lasso = widgets.Lasso(event.inaxes, (event.xdata, 
event.ydata), self.callback)
 # acquire a lock on the widget drawing
 self.canvas.widgetlock(self.lasso)
 print OK4

data = [Datum(*xy) for xy in rand(100, 2)]
# Fake run data
i = 0
for d in data:
 d.run = i
 i += 1

fig = pyplot.figure()
ax = fig.add_subplot(111, xlim=(0,1), ylim=(0,1), autoscale_on=False)
lman = LassoManager(ax, data)

pyplot.show()

-- 
__
Leonard J. Reder
Jet Propulsion Laboratory
Email: [EMAIL PROTECTED]
Phone (Voice): 818-354-3639
--

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Compass Rose?

2008-03-24 Thread Kenneth Miller
Does anyone know how to change the polar graph so that i can graph  
with 0 at North, 90 at west, 180 at south and 270 at east?  
(Considering you look at the polar graph like a compass)

Thanks!
Kenneth Miller

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Interrupted system call on Mac

2008-03-24 Thread Albert Cervera i Areny
Hi,

I'm working on a Qt/KDE based GUI for TinyERP called, KTiny. One of the users 
has been trying the application on Mac and matplotlib crashes with the 
attached backtrace. Backend is Qt4Agg.

Unfortunately I don't have access to a Mac machine, but could ask him to try 
some things as he is very responsive. Has anyone an idea of what could be the 
problem? The application works perfectly well on Linux. On Windows is 
producing a segmentation fault, but that is an issue for another e-mail I 
think.

Any ideas will be very welcomed. Thanks in advance!

-- 
Albert Cervera i Areny
http://www.NaN-tic.com
Traceback (most recent call last):
  File ktiny.py, line 151, in module
login =win.sig_login()
  File /Users/gass/svn/ktiny/bin/modules/gui/main.py, line 230, in sig_login
self.login( dialog.url, dialog.databaseName )
  File /Users/gass/svn/ktiny/bin/modules/gui/main.py, line 252, in login
self.sig_home_new( quiet=False )
  File /Users/gass/svn/ktiny/bin/modules/gui/main.py, line 361, in 
sig_home_new
return self.sig_win_new(widget, type='action_id', quiet=quiet,  
except_id=except_id)
  File /Users/gass/svn/ktiny/bin/modules/gui/main.py, line 347, in sig_win_new
win = obj.execute(act_id, {'window':self })
  File /Users/gass/svn/ktiny/bin/modules/action/main.py, line 83, in execute
self._exec_action(res,datas)
  File /Users/gass/svn/ktiny/bin/modules/action/main.py, line 122, in 
_exec_action
limit=datas['limit'], auto_refresh=datas['auto_refresh'])
  File /Users/gass/svn/ktiny/bin/modules/gui/window/windowservice.py, line 
52, in create
context=context, name=name
  File /Users/gass/svn/ktiny/bin/modules/gui/window/form.py, line 81, in 
__init__
self.screen = Screen(self.model, view_type=view_type, context=self.context, 
view_ids=view_ids, domain=domain, hastoolbar=options.options['form.toolbar'] , 
parent=self)
  File /Users/gass/svn/ktiny/bin/widget/screen/screen.py, line 88, in __init__
view = self.add_view_id(view_id, view_type[0])
  File /Users/gass/svn/ktiny/bin/widget/screen/screen.py, line 216, in 
add_view_id
return self.add_view(view['arch'], view['fields'], display, 
toolbar=view.get('toolbar', False))
  File /Users/gass/svn/ktiny/bin/widget/screen/screen.py, line 255, in 
add_view
view, on_write = ViewFactory.create(self, self.resource, dom, self.fields, 
toolbar=toolbar)
  File /Users/gass/svn/ktiny/bin/widget/view/viewfactory.py, line 72, in 
create
view, on_write = parser.create(parent, model, node, fields, toolbar)
  File /Users/gass/svn/ktiny/bin/widget/view/form/parser.py, line 114, in 
create
container, on_write = self.parse( node, fields, container=self.view.widget )
  File /Users/gass/svn/ktiny/bin/widget/view/form/parser.py, line 214, in 
parse
_, on_write = self.parse( node, fields, widget, container)
  File /Users/gass/svn/ktiny/bin/widget/view/form/parser.py, line 229, in 
parse
widget, on_write = self.parse( node, fields, None,None)
  File /Users/gass/svn/ktiny/bin/widget/view/form/parser.py, line 235, in 
parse
widget_act = action(  container , None, attrs)
  File /Users/gass/svn/ktiny/bin/widget/view/form/action.py, line 73, in 
__init__
self.screen = Screen(self.action['res_model'], view_type=mode, 
context=self.context, view_ids = view_id, domain=self.domain, parent = self )
  File /Users/gass/svn/ktiny/bin/widget/screen/screen.py, line 88, in __init__
view = self.add_view_id(view_id, view_type[0])
  File /Users/gass/svn/ktiny/bin/widget/screen/screen.py, line 216, in 
add_view_id
return self.add_view(view['arch'], view['fields'], display, 
toolbar=view.get('toolbar', False))
  File /Users/gass/svn/ktiny/bin/widget/screen/screen.py, line 255, in 
add_view
view, on_write = ViewFactory.create(self, self.resource, dom, self.fields, 
toolbar=toolbar)
  File /Users/gass/svn/ktiny/bin/widget/view/viewfactory.py, line 70, in 
create
exec( 'import %s' % imports[node.localName] )
  File string, line 1, in module
  File /Users/gass/svn/ktiny/bin/widget/view/chart/__init__.py, line 1, in 
module
from parser import *
  File /Users/gass/svn/ktiny/bin/widget/view/chart/parser.py, line 39, in 
module
from chart import *
  File /Users/gass/svn/ktiny/bin/widget/view/chart/chart.py, line 33, in 
module
import tinygraph
  File /Users/gass/svn/ktiny/bin/tinygraph/__init__.py, line 4, in module
from pylab import arange
  File 
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py,
 line 1, in module
from matplotlib.pylab import *
  File 
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py,
 line 208, in module
from matplotlib import mpl  # pulls in most modules
  File 
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py,
 line 3, in module
from matplotlib import axis
  File