From: Michael D. <md...@st...> - 2007-08-01 16:06:03
|
John Hunter wrote: > On 8/1/07, william ratcliff <wil...@gm...> wrote: > >> from matplotlib.mathtext import math_parse_s_ft2font >> File >> "c:\python25\Lib\site-packages\matplotlib\mathtext.py", >> line 1182, in <mo >> dule> >> class Vlist(List): >> File >> "c:\python25\Lib\site-packages\matplotlib\mathtext.py", >> line 1189, in Vli >> st >> def vpack(self, h=0., m='additional', l=float('inf')): >> ValueError: invalid literal for float(): inf >> > > It's not clear to me why you should be hitting mathtext at all, since > the wxcursor_demo.py does not use it, as far as I can tell. Michael, > would any of your earlier work caused him to get into mathtext > inapproriately? The call to "float('inf')", since it's in a default argument spec, will get called at import time. Most (maybe all) of the backends import mathtext unconditionally, so this will get run whether mathtext is used/called or not. I'm not opposed to importing mathtext on demand only, but that would be new. Cheers, Mike |