I'm happy to deal with this, but I wonder about the best path. Is it reasonable to assume that we have unicode support available in LaTeX and can just turn it on always, or do we need to (for instance) convert all the Unicode minus signs back into "-" and put the whole thing inside "$ $" (something that I suspect will be tricky in general also). Or, should we just back this minus sign stuff out (again), until we have a good general solution?
BTW -- this change is only on the trunk, which is still expected to have some rough edges. Personally, I'm less concerned about fixing this asap than if it were on the maintenance branch. Cheers, Mike Darren Dale wrote: > On Thursday 29 May 2008 11:32:10 am Darren Dale wrote: > >> On Thursday 29 May 2008 08:28:20 am Darren Dale wrote: >> >>> On Thursday 29 May 2008 06:39:26 am Darren Dale wrote: >>> >>>> On Wednesday 28 May 2008 10:42:57 pm John Hunter wrote: >>>> >>>>> On Wed, May 28, 2008 at 8:30 PM, Charlie Moad <[EMAIL PROTECTED]> >>>>> > wrote: > >>>>>> Should we still proceed with this now that numpy 1.1.0 is out? Any >>>>>> holdups? >>>>>> >>>> [...] >>>> >>>> >>>>> So let's focus on clearing these bugs (and anything else the other >>>>> devs raise), hopefully in the next couple days, and then push out the >>>>> maintenance release followed by the pre-release of the branch. >>>>> >>>>> I'll also work on getting the site docs ready to go. >>>>> >>>> On tuesday we ran into a spot of trouble at work, I've been having to >>>> put in extra hours and work at home in the evening to try to handle it. >>>> Unfortunately I probably won't be in a position to help with docs and >>>> bugs until the weekend. >>>> >>> There is a bug in texmanager that I need to fix before we release 91.3 or >>> 98pre. I'll try to squeeze it in this morning. >>> >> It looks like my problem is fixed on the branch and the trunk, thanks to >> Mike for helping sort out the merge. >> > > Looks like something else just turned up in ticker.py on the trunk. Somebody > replaced minus signs with unicode, a good idea, but it breaks latex if > unicode support is not enabled for usetex. I don't have time to fix it. > > File "monte_carlo.py", line 37, in <module> > show() > > File "/usr/lib64/python2.5/site-packages/matplotlib/backends/backend_qt4.py", > line 66, in show > figManager.canvas.draw() > > File > "/usr/lib64/python2.5/site-packages/matplotlib/backends/backend_qt4agg.py", > line 133, in draw > FigureCanvasAgg.draw(self) > > File "/usr/lib64/python2.5/site-packages/matplotlib/backends/backend_agg.py", > line 255, in draw > self.figure.draw(self.renderer) > File "/usr/lib64/python2.5/site-packages/matplotlib/figure.py", line 792, > in > draw > for a in self.axes: a.draw(renderer) > File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line 1452, in > draw > a.draw(renderer) > File "/usr/lib64/python2.5/site-packages/matplotlib/axis.py", line 680, in > draw > tick.draw(renderer) > File "/usr/lib64/python2.5/site-packages/matplotlib/axis.py", line 179, in > draw > self.label1.draw(renderer) > File "/usr/lib64/python2.5/site-packages/matplotlib/text.py", line 761, in > draw > Text.draw(self, renderer) > File "/usr/lib64/python2.5/site-packages/matplotlib/text.py", line 295, in > draw > bbox, info = self._get_layout(renderer) > File "/usr/lib64/python2.5/site-packages/matplotlib/text.py", line 195, in > _get_layout > line, self._fontproperties, ismath=self.is_math_text(line)) > > File "/usr/lib64/python2.5/site-packages/matplotlib/backends/backend_agg.py", > line 127, in get_text_width_height_descent > Z = texmanager.get_grey(s, size, self.dpi) > File "/usr/lib64/python2.5/site-packages/matplotlib/texmanager.py", line > 366, in get_grey > pngfile = self.make_png(tex, fontsize, dpi) > File "/usr/lib64/python2.5/site-packages/matplotlib/texmanager.py", line > 300, in make_png > dvifile = self.make_dvi(tex, fontsize) > File "/usr/lib64/python2.5/site-packages/matplotlib/texmanager.py", line > 269, in make_dvi > texfile = self.make_tex(tex, fontsize) > File "/usr/lib64/python2.5/site-packages/matplotlib/texmanager.py", line > 248, in make_tex > fh.write(s) > UnicodeEncodeError: 'ascii' codec can't encode character u'\u2212' in > position > 290: ordinal not in range(128) > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Matplotlib-devel mailing list > Matplotlib-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > -- 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/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel