Figured it out:
import matplotlib.mlab as mlab
import mpl_toolkits.gtktools as gtktools
formatd = dict(
x = mlab.FormatFloat(2),
y = mlab.FormatFloat(2)
)
r=mlab.csv2rec('file.csv',names=('X','Y'))
v=gtktools.rec2gtk(r,formatd=formatd)
for c in v.treeview.get_column
Is is possible to xalign rec2gtk columns?
I see the following line in the rec2gtk source:
-> renderer.set_property('xalign', formatter.xalign)
but can't figure out how to pass this info to the func.
thx
Andre
--
Come b
The problem was exposed by running python -c "import pylab" from the
command shell.
A message box indicated that msvcp71.dll was missing.
I copied this file to my python25 folder and it fixed the problem. Note
- it didn't help to copy the missing file to the windows\system32 folder
or even
FYI
pylab fails to import on Windows Server 2008. I'm using the latest
installs of numpy, scipy and matplotlib.
>>> from pylab import *
Traceback (most recent call last):
File "", line 1, in
File "C:\Python25\Lib\site-packages\pylab.py", line 1, in
from matplotlib.pylab import