It looks as if the docs can't be built if text.usetex is "True", first because of needing Unicode (which also requires setting text.latex.unicode to True), and second because the dollar_ticks.py demo doesn't escape '$'.
I suppose we should hardcode text.usetex to "False" when building the documentation figures. Better yet, it might be a good idea to provide a "documentation-only" matplotlibrc (or use only the defaults) so that we can always get consistent results when building the documentation. Cheers, Mike Johann Cohen-Tanugi wrote: > I did not manage to build it either, but with another error, the > output is actually huge, and ipython (how come it is called?) crashes, > but after CTRL-C I get: > Original exception was: > Traceback (most recent call last): > File "make.py", line 54, in <module> > all() > File "make.py", line 39, in all > figs() > File "make.py", line 25, in figs > plt.savefig(outfile) > File "/usr/lib/python2.5/site-packages/matplotlib/pyplot.py", line > 278, in savefig > return fig.savefig(*args, **kwargs) > File "/usr/lib/python2.5/site-packages/matplotlib/figure.py", line > 986, in savefig > self.canvas.print_figure(*args, **kwargs) > File "/usr/lib/python2.5/site-packages/matplotlib/backend_bases.py", > line 1286, in print_figure > **kwargs) > File > "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py", > line 300, in print_png > FigureCanvasAgg.draw(self) > File > "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py", > line 256, in draw > self.figure.draw(self.renderer) > File "/usr/lib/python2.5/site-packages/matplotlib/figure.py", line > 825, in draw > for a in self.axes: a.draw(renderer) > File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line > 1502, in draw > a.draw(renderer) > File "/usr/lib/python2.5/site-packages/matplotlib/axis.py", line 674, > in draw > tick.draw(renderer) > File "/usr/lib/python2.5/site-packages/matplotlib/axis.py", line 173, > in draw > self.label1.draw(renderer) > File "/usr/lib/python2.5/site-packages/matplotlib/text.py", line 764, > in draw > Text.draw(self, renderer) > File "/usr/lib/python2.5/site-packages/matplotlib/text.py", line 298, > in draw > bbox, info = self._get_layout(renderer) > File "/usr/lib/python2.5/site-packages/matplotlib/text.py", line 198, > in _get_layout > line, self._fontproperties, ismath=self.is_math_text(line)) > File > "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py", > line 128, in get_text_width_height_descent > Z = texmanager.get_grey(s, size, self.dpi) > File "/usr/lib/python2.5/site-packages/matplotlib/texmanager.py", > line 366, in get_grey > pngfile = self.make_png(tex, fontsize, dpi) > File "/usr/lib/python2.5/site-packages/matplotlib/texmanager.py", > line 300, in make_png > dvifile = self.make_dvi(tex, fontsize) > File "/usr/lib/python2.5/site-packages/matplotlib/texmanager.py", > line 269, in make_dvi > texfile = self.make_tex(tex, fontsize) > File "/usr/lib/python2.5/site-packages/matplotlib/texmanager.py", > line 248, in make_tex > fh.write(s) > > Johann > > > John Hunter wrote: >> On Wed, Jun 11, 2008 at 12:35 PM, John Hunter <[EMAIL PROTECTED]> wrote: >> >>> On Wed, Jun 11, 2008 at 12:25 PM, Michael Droettboom >>> <[EMAIL PROTECTED]> wrote: >>> >>>> Ok. I think I have that worked out -- would you mind testing on >>>> docutils >>>> 0.4? (I don't think I broke anything that wasn't already broken...) >>>> >>> OK, sorry I've been causing so much trouble, but I guess it is good >>> that at least one of works on python 2.4 sometimes. >>> >> >> Just a quick note that latex builds appear broken, and the error >> message suggests it is a math problem, perhaps caused by the new >> symbol table. First error is: >> >> ! LaTeX Error: Command \Cap already defined. >> Or name \end... illegal, see p.192 of the manual. >> >> complete output below... >> >> [EMAIL PROTECTED]:doc> python make.py latex >> making figs >> already have dollar_ticks.png >> already have pyplot_three.png >> already have pyplot_two_subplots.png >> already have fig_x.png >> already have pyplot_annotate.png >> already have text_commands.png >> already have pyplot_simple.png >> already have pyplot_mathtext.png >> already have annotation_polar.png >> already have annotation_basic.png >> already have fig_axes_labels_simple.png >> already have text_layout.png >> already have pyplot_text.png >> already have fig_axes_customize_simple.png >> already have pyplot_formatstr.png >> all figures made >> Sphinx v0.3, building latex >> trying to load pickled env... not found >> building [latex]: all documents >> updating environment: 31 added, 0 changed, 0 removed >> reading... api/artist_api api/axes_api api/backend_api api/index >> api/pyplot_api devel/add_new_projection devel/coding_guide >> devel/documenting_mpl devel/index devel/outline devel/transformations >> faq/environment_variables_faq faq/howto_faq faq/index >> faq/installing_faq faq/troubleshooting_faq index users/annotations >> users/arraydata users/artists users/customizing users/event_handling >> users/index users/index_text users/intro users/mathtext >> users/navigation_toolbar users/pyplot_tutorial users/text_intro >> users/text_props users/usetex >> pickling the env... done >> checking consistency... >> WARNING: /home/jdhunter/mpl/doc/users/arraydata.rst:: document isn't >> included in any toctree >> processing Matplotlib.tex... index users/index users/intro >> users/pyplot_tutorial users/navigation_toolbar users/customizing >> users/index_text users/text_intro users/text_props users/mathtext >> users/usetex users/annotations users/artists users/event_handling >> faq/index faq/installing_faq faq/troubleshooting_faq faq/howto_faq >> faq/environment_variables_faq devel/index devel/coding_guide >> devel/documenting_mpl devel/transformations devel/add_new_projection >> devel/outline api/index api/artist_api api/axes_api api/pyplot_api >> api/backend_api >> resolving references... >> writing... done >> finishing... >> copying images... _static/cm_fontset.png >> users/figures/fig_axes_labels_simple.png mpl_data/images/back.png >> _static/stix_fontset.png users/figures/fig_x.png >> mpl_data/images/zoom_to_rect.png mpl_data/images/filesave.png >> users/figures/pyplot_text.png users/figures/dollar_ticks.png >> _static/transforms.png users/figures/annotation_basic.png >> users/figures/annotation_polar.png users/figures/pyplot_mathtext.png >> mpl_data/images/home.png _static/stixsans_fontset.png >> users/figures/pyplot_formatstr.png mpl_data/images/move.png >> users/figures/fig_axes_customize_simple.png >> users/figures/text_layout.png mpl_data/images/subplots.png >> users/figures/text_commands.png users/figures/pyplot_annotate.png >> _static/tex_unicode_demo.png users/figures/pyplot_three.png >> _static/tex_demo.png mpl_data/images/forward.png >> users/figures/pyplot_two_subplots.png _static/toolbar.png >> _static/stix_fonts.png users/figures/pyplot_simple.png >> copying TeX support files... >> build succeeded, 1 warning. >> This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) >> entering extended mode >> (./Matplotlib.tex >> LaTeX2e <2003/12/01> >> Babel <v3.8d> and hyphenation patterns for american, french, german, >> ngerman, b >> ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, >> esperanto, e >> stonian, finnish, greek, icelandic, irish, italian, latin, magyar, >> norsk, polis >> h, portuges, romanian, russian, serbian, slovak, slovene, spanish, >> swedish, tur >> kish, ukrainian, nohyphenation, loaded. >> (./manual.cls >> Document Class: manual 2008/05/01 Document class (Sphinx manual) >> (/usr/share/texmf/tex/latex/fancybox/fancybox.sty >> Style option: `fancybox' v1.3 <2000/09/19> (tvz) >> ) (/usr/share/texmf/tex/latex/base/report.cls >> Document Class: report 2004/02/16 v1.4f Standard LaTeX document class >> (/usr/share/texmf/tex/latex/base/size11.clo)) >> (/usr/share/texmf/tex/latex/fancyhdr/fancyhdr.sty) (./fncychap.sty) >> (./sphinx.sty (/usr/share/texmf/tex/latex/base/textcomp.sty >> (/usr/share/texmf/tex/latex/base/ts1enc.def)) >> (/usr/share/texmf/tex/latex/psnfss/times.sty) >> (/usr/share/texmf/tex/latex/fancyvrb/fancyvrb.sty >> Style option: `fancyvrb' v2.6, with DG/SPQR fixes <1998/07/17> (tvz) >> (/usr/share/texmf/tex/latex/graphics/keyval.sty) >> No file fancyvrb.cfg. >> ) (/usr/share/texmf/tex/latex/titlesec/titlesec.sty) (./tabulary.sty >> (/usr/share/texmf/tex/latex/tools/array.sty)) >> (/usr/share/texmf/tex/latex/graphics/color.sty >> (/usr/share/texmf/tex/latex/graphics/color.cfg) >> (/usr/share/texmf/tex/latex/graphics/pdftex.def)) >> (/usr/share/texmf/tex/latex/hyperref/hyperref.sty >> (/usr/share/texmf/tex/latex/hyperref/pd1enc.def) >> (/usr/share/texmf/tex/latex/hyperref/hyperref.cfg) >> Implicit mode ON; LaTeX internals redefined >> (/usr/share/texmf/tex/latex/url/url.sty)) >> *hyperref using default driver hpdftex* >> (/usr/share/texmf/tex/latex/hyperref/hpdftex.def >> (/usr/share/texmf/tex/latex/psnfss/pifont.sty >> (/usr/share/texmf/tex/latex/psnfss/upzd.fd) >> (/usr/share/texmf/tex/latex/psnfss/upsy.fd))) >> (/usr/share/texmf/tex/latex/framed/framed.sty) >> (/usr/share/texmf/tex/latex/graphics/graphicx.sty >> (/usr/share/texmf/tex/latex/graphics/graphics.sty >> (/usr/share/texmf/tex/latex/graphics/trig.sty) >> (/usr/share/texmf/tex/latex/graphics/graphics.cfg))) >> (/usr/share/texmf/tex/plain/pdfcolor/pdfcolor.tex)) >> (/usr/share/texmf/tex/latex/base/makeidx.sty)) >> (/usr/share/texmf/tex/latex/base/inputenc.sty >> (/usr/share/texmf/tex/latex/base/utf8.def >> (/usr/share/texmf/tex/latex/base/t1enc.dfu) >> (/usr/share/texmf/tex/latex/base/ot1enc.dfu) >> (/usr/share/texmf/tex/latex/base/omsenc.dfu) >> (/usr/share/texmf/tex/latex/base/ts1enc.dfu))) >> (/usr/share/texmf/tex/latex/base/fontenc.sty >> (/usr/share/texmf/tex/latex/base/t1enc.def)) >> (/usr/share/texmf/tex/latex/amsmath/amsmath.sty >> For additional information on amsmath, use the `?' option. >> (/usr/share/texmf/tex/latex/amsmath/amstext.sty >> (/usr/share/texmf/tex/latex/amsmath/amsgen.sty)) >> (/usr/share/texmf/tex/latex/amsmath/amsbsy.sty) >> (/usr/share/texmf/tex/latex/amsmath/amsopn.sty)) >> (/usr/share/texmf/tex/latex/amsfonts/amsfonts.sty) >> (/usr/share/texmf/tex/latex/amsfonts/amssymb.sty) >> Writing index file Matplotlib.idx >> >> ! LaTeX Error: Command \Cap already defined. >> Or name \end... illegal, see p.192 of the manual. >> >> See the LaTeX manual or LaTeX Companion for explanation. >> Type H <return> for immediate help. >> ... >> >> l.28 ...ap[1]{\textcolor[rgb]{0.78,0.36,0.04}{#1}} >> >> ------------------------------------------------------------------------- >> >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> _______________________________________________ >> 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 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel