On 06/08/2010 12:25 PM, Eric Firing wrote: > On 06/08/2010 11:16 AM, Thomas Robitaille wrote: >> Hello, >> >> I updated to svn r8396 today, and the MacOSX backend is broken. The >> following code >> >> import matplotlib >> matplotlib.use('MacOSX') >> import matplotlib.pyplot as mpl >> >> fig = mpl.figure() >> ax = fig.add_subplot(1,1,1) >> fig.canvas.draw() >> >> produces the following error: >> >> File "/Users/tom/Library/Python/2.6/site-packages/matplotlib/lines.py", >> line 522, in draw >> gc.set_alpha(self._alpha) >> TypeError: a float is required >> >> I have submitted a bug report with full error transcript here: >> >> https://sourceforge.net/tracker/?func=detail&aid=3013440&group_id=80706&atid=560720 > > Tom, > > Thanks. I don't see anything MaxOSX backend-specific about this, > though, and I can't reproduce it here on Linux. Did you do a clean > build and install, deleting the build directory and the previous > installation? > > Eric
Aha! I see the problem: _macosx is overriding the GraphicsContextBase.set_alpha. This is easy to fix. Coming shortly. Eric > >> >> Cheers, >> >> Tom >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> Matplotlib-users mailing list >> Matplotlib-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users