You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(33) |
Dec
(20) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(7) |
Feb
(44) |
Mar
(51) |
Apr
(43) |
May
(43) |
Jun
(36) |
Jul
(61) |
Aug
(44) |
Sep
(25) |
Oct
(82) |
Nov
(97) |
Dec
(47) |
2005 |
Jan
(77) |
Feb
(143) |
Mar
(42) |
Apr
(31) |
May
(93) |
Jun
(93) |
Jul
(35) |
Aug
(78) |
Sep
(56) |
Oct
(44) |
Nov
(72) |
Dec
(75) |
2006 |
Jan
(116) |
Feb
(99) |
Mar
(181) |
Apr
(171) |
May
(112) |
Jun
(86) |
Jul
(91) |
Aug
(111) |
Sep
(77) |
Oct
(72) |
Nov
(57) |
Dec
(51) |
2007 |
Jan
(64) |
Feb
(116) |
Mar
(70) |
Apr
(74) |
May
(53) |
Jun
(40) |
Jul
(519) |
Aug
(151) |
Sep
(132) |
Oct
(74) |
Nov
(282) |
Dec
(190) |
2008 |
Jan
(141) |
Feb
(67) |
Mar
(69) |
Apr
(96) |
May
(227) |
Jun
(404) |
Jul
(399) |
Aug
(96) |
Sep
(120) |
Oct
(205) |
Nov
(126) |
Dec
(261) |
2009 |
Jan
(136) |
Feb
(136) |
Mar
(119) |
Apr
(124) |
May
(155) |
Jun
(98) |
Jul
(136) |
Aug
(292) |
Sep
(174) |
Oct
(126) |
Nov
(126) |
Dec
(79) |
2010 |
Jan
(109) |
Feb
(83) |
Mar
(139) |
Apr
(91) |
May
(79) |
Jun
(164) |
Jul
(184) |
Aug
(146) |
Sep
(163) |
Oct
(128) |
Nov
(70) |
Dec
(73) |
2011 |
Jan
(235) |
Feb
(165) |
Mar
(147) |
Apr
(86) |
May
(74) |
Jun
(118) |
Jul
(65) |
Aug
(75) |
Sep
(162) |
Oct
(94) |
Nov
(48) |
Dec
(44) |
2012 |
Jan
(49) |
Feb
(40) |
Mar
(88) |
Apr
(35) |
May
(52) |
Jun
(69) |
Jul
(90) |
Aug
(123) |
Sep
(112) |
Oct
(120) |
Nov
(105) |
Dec
(116) |
2013 |
Jan
(76) |
Feb
(26) |
Mar
(78) |
Apr
(43) |
May
(61) |
Jun
(53) |
Jul
(147) |
Aug
(85) |
Sep
(83) |
Oct
(122) |
Nov
(18) |
Dec
(27) |
2014 |
Jan
(58) |
Feb
(25) |
Mar
(49) |
Apr
(17) |
May
(29) |
Jun
(39) |
Jul
(53) |
Aug
(52) |
Sep
(35) |
Oct
(47) |
Nov
(110) |
Dec
(27) |
2015 |
Jan
(50) |
Feb
(93) |
Mar
(96) |
Apr
(30) |
May
(55) |
Jun
(83) |
Jul
(44) |
Aug
(8) |
Sep
(5) |
Oct
|
Nov
(1) |
Dec
(1) |
2016 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(3) |
Sep
(1) |
Oct
(3) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
(7) |
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1
(20) |
2
(19) |
3
(15) |
4
(7) |
5
(19) |
6
(14) |
7
(3) |
8
(10) |
9
(30) |
10
(10) |
11
(28) |
12
(47) |
13
(26) |
14
(6) |
15
(2) |
16
(3) |
17
(8) |
18
(7) |
19
(11) |
20
(18) |
21
(8) |
22
(15) |
23
(12) |
24
(18) |
25
(16) |
26
(5) |
27
(10) |
28
(5) |
29
(1) |
30
(11) |
|
|
|
|
|
When looking, e.g. at axes.py, I see 3 different arguments passed to numpy astype()/array()/zero() and friends: x = np.asarray(x).astype(np.float32) x = np.zeros( x, np.float_ ) x = np.ones((col,), float) Is there a preferred one to stick to ?! Manuel
Hi, I'm trying to make a Skew-T LogP plot, an important plot in meteorology, using matplotlib (mainly to help convert people away from much more horrible solutions). You can see one here: http://www.rap.ucar.edu/weather/upper/oun.gif and more cartoonish: http://www.srh.noaa.gov/oun/images/figure6.gif (Pay attention only to the lower part with the bold red and green lines). I'm pretty sure matplotlib can't currently do this, but it shouldn't be too hard. The crux of the plot is that you plot temperature as a function of pressure, with pressure reversed and logarithmically spaced on the Y-axis (ie. high pressure at the bottom) and temperature plotted skewed along the X axis. That is, the lines of constant temperature intersect the bottom at 45 degree angles. I know matplotlib can do log axes, so how hard would it be for me to create a transform that can handle the 45 degree skew of the temperature? Thanks, Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma
Hi, I'm using matplotlib on osx leopard (compiled with gcc-4.3) and if I try to render a simple plot I see lots of these errors: python(58290) malloc: *** error for object 0xa06026d8: Non-aligned pointer being freed *** set a breakpoint in malloc_error_break to debug I get the following backtrace with gdb: Breakpoint 1, 0x94458131 in malloc_error_break () (gdb) bt #0 0x94458131 in malloc_error_break () #1 0x9445311f in szone_error () #2 0x94377743 in szone_free () #3 0x943775ad in free () #4 0x0175c305 in std::string::assign (this=0xbfffa5e0, __str=@0xbfffa5dc) at bits/basic_string.h:236 #5 0x018e6b00 in FT2Font::set_text (this=0x34544d0, args=@0x17a3674, kwargs=@0xbfffa674) at src/ft2font.cpp:927 #6 0x018ef04c in Py::PythonExtension<FT2Font>::method_keyword_call_handler (_self_and_name_tuple=0x35819e0, _args=0x3581a30, _keywords=0x358bd20) at Extensions.hxx:671 #7 0x001e0211 in PyCFunction_Call (func=0x3581c88, arg=0x3581a30, kw=0x358bd20) at Objects/methodobject.c:77 #8 0x001a3b51 in PyObject_Call (func=0x3581c88, arg=0x3581a30, kw=0x358bd20) at Objects/abstract.c:1861 #9 0x00239cc0 in PyEval_EvalFrameEx (f=0x3453370, throwflag=0) at Python/ceval.c:3784 #10 0x0023d3b5 in PyEval_EvalCodeEx (co=0x1df2848, globals=0x1de0ae0, locals=0x0, args=0xb753e4, argcount=3, kws=0xb753f0, kwcount=1, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2836 #11 0x0023bd1d in PyEval_EvalFrameEx (f=0xb75210, throwflag=0) at Python/ceval.c:3669 #12 0x0023d3b5 in PyEval_EvalCodeEx (co=0x1b50068, globals=0x18ba930, locals=0x0, args=0x3452914, argcount=2, kws=0x345291c, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2836 #13 0x0023bd1d in PyEval_EvalFrameEx (f=0x34527a0, throwflag=0) at Python/ceval.c:3669 #14 0x0023d3b5 in PyEval_EvalCodeEx (co=0x1b500f8, globals=0x18ba930, locals=0x0, args=0x35819c4, argcount=2, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2836 #15 0x001c944e in function_call (func=0x1b583f0, arg=0x35819b8, kw=0x0) at Objects/funcobject.c:517 #16 0x001a3b51 in PyObject_Call (func=0x1b583f0, arg=0x35819b8, kw=0x0) at Objects/abstract.c:1861 #17 0x001abc4d in instancemethod_call (func=0x1b583f0, arg=0x35819b8, kw=0x0) at Objects/classobject.c:2519 ... so it seems to come from somewhere within matplotlib. It doesn't seem to be a major issue, since the program continues fine, and the plot is rendered correctly. Any ideas on how to fix it? thanks
Hi, John. With the change, "fig = figure(figsize=(w, h))" properly creates a figure window with a correctly-sized canvas, but "fig.set_size_inches((w, h), forward=True)" raises AttributeError: 'FigureCanvasWxAgg' object has no attribute 'SetSizeFunc' in FigureManagerWx.resize. Previously, the SetInitialSize called by FigureFrameWx.__init__ and FigureManagerWx.resize was an attribute of the canvas, but the new code makes SetSizeFunc an attribute of the frame instead. FigureManagerWx.resize was still looking under the canvas. Would you please look over the attached patch? During FigureCanvasWx.__init__, it connects FigureCanvasWx.SetInitialSize to SetBestFittingSize or do_nothing if it isn't already inherited from wx.Panel. FigureFrameWx.__init__ and FigureManagerWx.resize just call FigureCanvasWx.SetInitialSize. Stan -----Original Message----- From: John Hunter [mailto:jd...@gm...] Sent: Tuesday, June 10, 2008 10:31 To: Stan West Cc: Nils Wagner; mat...@li... Subject: Re: [matplotlib-devel] AttributeError: 'FigureCanvasWxAgg' object has no attribute 'SetInitialSize' On Tue, Jun 10, 2008 at 9:21 AM, Stan West <sta...@nr...> wrote: > Greetings. According to http://www.wxpython.org/recentchanges.php, > SetInitialSize became available at version 2.7.2.0 (7 Nov 2006) of wxPython. > It renamed the prior SetBestFittingSize, for which I found no other > mention in the changes document. (That version history lists those > methods as belonging to wx.Window, from which wx.Panel inherits.) OK, I committed a change to svn using: def do_nothing(*args, **kwargs): warnings.warn('could not find a SetSizeFunc for backend_wx; please report your wxpython version=%s to the matplotlib developers list'%backend_version) pass # try to find the set size func across wx versions self.SetSizeFunc = getattr(self.canvas, 'SetInitialSize', getattr(self.canvas, 'SetBestFittingSize', do_nothing)) self.SetSizeFunc(wx.Size(fig.bbox.width, fig.bbox.height)) Could you guys test from svn on your respective wx versions and/or check that the logic looks correct here? Thanks, JDH
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 <jd...@gm...> wrote: > >> On Wed, Jun 11, 2008 at 12:25 PM, Michael Droettboom <md...@st...> 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... > > jdhunter@bic128: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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel >
On Wed, Jun 11, 2008 at 12:35 PM, John Hunter <jd...@gm...> wrote: > On Wed, Jun 11, 2008 at 12:25 PM, Michael Droettboom <md...@st...> 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... jdhunter@bic128: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}}
On Wed, Jun 11, 2008 at 02:01:59PM -0400, Michael Droettboom wrote: There does seem to be a recent convergence around Sphinx in the Scipy > world, and matplotlib seems to be forging ahead a little bit (maybe > that's just my impression from being in the middle of matplotlib more so > than other projects). It would be great to have something like a > Sphinx/Documentation BoF to share our experiences thus far, or perhaps a > lightning talk (which at SciPy are 10 minutes) to outline what > matplotlib has done wrt documentation. If Darren were going, he'd be > ideal to give that talk, but I could probably manage as well. A lightning talk would be fantastic. I have already urged Stefan to give one about the numpy documentation editor http://sd-2116.dedibox.fr/pydocweb/wiki/Front%20Page/ Maybe we could combine two talks taking half the time of a full talk, with Stefan talking about the webapp, and someone from MPL talking about this. It would make a great, consistent, view on the current documentation efforts in scientific Python, and I bet people would be interested, maybe to bring the ideas back home on their own projects. Of course, I am speaking on a personal basis, and I can't speak for the rest of the organizing committee, but this sounds very nice. Cheers, Gaël
Looks like a nice solution to me. I don't use pie charts much myself, so I'll give it some time to see if there are any dissenters. If none, I'll go ahead and commit this to SVN. Thanks! Mike Benoit Hirbec wrote: > Hello, > > Pie charts are very useful, but when wedges labels are too long, the > label text overlaps the pie wedge, resulting in a poor readability > (see the attached file 'before_patch.pdf'). > > I propose to modify the file 'axes.py' in method 'pie' by replacing: > > xt = x + labeldistance*radius*math.cos(thetam) > yt = y + labeldistance*radius*math.sin(thetam) > > t = self.text(xt, yt, label, > size=rcParams['xtick.labelsize'], > horizontalalignment='center', > verticalalignment='center') > > texts.append(t) > > By: > > xt = x + labeldistance*radius*math.cos(thetam) > yt = y + labeldistance*radius*math.sin(thetam) > label_alignment = xt > 0 and 'left' or 'right' > > t = self.text(xt, yt, label, > size=rcParams['xtick.labelsize'], > horizontalalignment=label_alignment, > verticalalignment='center') > > texts.append(t) > > Only 2 lines changed ;-) > > This way, labels are right aligned when placed at the left of the pie, > and left aligned when placed on the right of the pie (instead of being > always centered). See the attached file 'after_patch.pdf' for an > example. > I also give an example in the example.py file. > > Do you agree to commit that to the trunk? > > Thanks for making matplotlib, > > Benoit Hirbec > Garden > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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 > Mat...@li... > 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
Hello, Pie charts are very useful, but when wedges labels are too long, the label text overlaps the pie wedge, resulting in a poor readability (see the attached file 'before_patch.pdf'). I propose to modify the file 'axes.py' in method 'pie' by replacing: xt = x + labeldistance*radius*math.cos(thetam) yt = y + labeldistance*radius*math.sin(thetam) t = self.text(xt, yt, label, size=rcParams['xtick.labelsize'], horizontalalignment='center', verticalalignment='center') texts.append(t) By: xt = x + labeldistance*radius*math.cos(thetam) yt = y + labeldistance*radius*math.sin(thetam) label_alignment = xt > 0 and 'left' or 'right' t = self.text(xt, yt, label, size=rcParams['xtick.labelsize'], horizontalalignment=label_alignment, verticalalignment='center') texts.append(t) Only 2 lines changed ;-) This way, labels are right aligned when placed at the left of the pie, and left aligned when placed on the right of the pie (instead of being always centered). See the attached file 'after_patch.pdf' for an example. I also give an example in the example.py file. Do you agree to commit that to the trunk? Thanks for making matplotlib, Benoit Hirbec Garden
Hi all, Something is wrong with legend in recent svn. The color of the corresponding function is missing in the legend. Any idea ? Nils
This should now be fixed in SVN. Michael Droettboom wrote: > Probably related to my recent PNG refactoring. (That silly error > message is related to a different number of arguments being provided > than expected). I'll look into it. > > Cheers, > Mike > > Nils Wagner wrote: > >> Hi all, >> >> If I run the attached test I obtain an >> >> IndexError: Unexpected SeqBase<T> length >> >> python -i test_struve.py --verbose-helpful >> $HOME=/home/nwagner >> CONFIGDIR=/home/nwagner/.matplotlib >> matplotlib data path >> /usr/local/lib64/python2.5/site-packages/matplotlib/mpl-data >> loaded rc file /home/nwagner/.matplotlib/matplotlibrc >> matplotlib version 0.98.0 >> verbose.level helpful >> interactive is False >> units is False >> platform is linux2 >> Using fontManager instance from >> /home/nwagner/.matplotlib/fontManager.cache >> numerix numpy 1.2.0.dev5264 >> backend GTKAgg version 2.10.3 >> Found dvipng version 1.5 >> Traceback (most recent call last): >> File >> "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_gtk.py", >> line 331, in expose_event >> self._render_figure(self._pixmap, w, h) >> File >> "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_gtkagg.py", >> line 75, in _render_figure >> FigureCanvasAgg.draw(self) >> File >> "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_agg.py", >> line 256, in draw >> self.figure.draw(self.renderer) >> File >> "/usr/local/lib64/python2.5/site-packages/matplotlib/figure.py", line >> 825, in draw >> for a in self.axes: a.draw(renderer) >> File "/usr/local/lib64/python2.5/site-packages/matplotlib/axes.py", >> line 1502, in draw >> a.draw(renderer) >> File "/usr/local/lib64/python2.5/site-packages/matplotlib/axis.py", >> line 674, in draw >> tick.draw(renderer) >> File "/usr/local/lib64/python2.5/site-packages/matplotlib/axis.py", >> line 173, in draw >> self.label1.draw(renderer) >> File "/usr/local/lib64/python2.5/site-packages/matplotlib/text.py", >> line 764, in draw >> Text.draw(self, renderer) >> File "/usr/local/lib64/python2.5/site-packages/matplotlib/text.py", >> line 298, in draw >> bbox, info = self._get_layout(renderer) >> File "/usr/local/lib64/python2.5/site-packages/matplotlib/text.py", >> line 198, in _get_layout >> line, self._fontproperties, ismath=self.is_math_text(line)) >> File >> "/usr/local/lib64/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/local/lib64/python2.5/site-packages/matplotlib/texmanager.py", >> line 367, in get_grey >> X = read_png(os.path.join(self.texcache, pngfile)) >> IndexError: Unexpected SeqBase<T> length. >> >> Any idea ? >> >> Nils >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------- >> 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 >> Mat...@li... >> 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
Probably related to my recent PNG refactoring. (That silly error message is related to a different number of arguments being provided than expected). I'll look into it. Cheers, Mike Nils Wagner wrote: > Hi all, > > If I run the attached test I obtain an > > IndexError: Unexpected SeqBase<T> length > > python -i test_struve.py --verbose-helpful > $HOME=/home/nwagner > CONFIGDIR=/home/nwagner/.matplotlib > matplotlib data path > /usr/local/lib64/python2.5/site-packages/matplotlib/mpl-data > loaded rc file /home/nwagner/.matplotlib/matplotlibrc > matplotlib version 0.98.0 > verbose.level helpful > interactive is False > units is False > platform is linux2 > Using fontManager instance from > /home/nwagner/.matplotlib/fontManager.cache > numerix numpy 1.2.0.dev5264 > backend GTKAgg version 2.10.3 > Found dvipng version 1.5 > Traceback (most recent call last): > File > "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_gtk.py", > line 331, in expose_event > self._render_figure(self._pixmap, w, h) > File > "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_gtkagg.py", > line 75, in _render_figure > FigureCanvasAgg.draw(self) > File > "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_agg.py", > line 256, in draw > self.figure.draw(self.renderer) > File > "/usr/local/lib64/python2.5/site-packages/matplotlib/figure.py", line > 825, in draw > for a in self.axes: a.draw(renderer) > File "/usr/local/lib64/python2.5/site-packages/matplotlib/axes.py", > line 1502, in draw > a.draw(renderer) > File "/usr/local/lib64/python2.5/site-packages/matplotlib/axis.py", > line 674, in draw > tick.draw(renderer) > File "/usr/local/lib64/python2.5/site-packages/matplotlib/axis.py", > line 173, in draw > self.label1.draw(renderer) > File "/usr/local/lib64/python2.5/site-packages/matplotlib/text.py", > line 764, in draw > Text.draw(self, renderer) > File "/usr/local/lib64/python2.5/site-packages/matplotlib/text.py", > line 298, in draw > bbox, info = self._get_layout(renderer) > File "/usr/local/lib64/python2.5/site-packages/matplotlib/text.py", > line 198, in _get_layout > line, self._fontproperties, ismath=self.is_math_text(line)) > File > "/usr/local/lib64/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/local/lib64/python2.5/site-packages/matplotlib/texmanager.py", > line 367, in get_grey > X = read_png(os.path.join(self.texcache, pngfile)) > IndexError: Unexpected SeqBase<T> length. > > Any idea ? > > Nils > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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 > Mat...@li... > 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
John Hunter wrote: > On Wed, Jun 11, 2008 at 12:25 PM, Michael Droettboom <md...@st...> 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. > > What I really wanted to talk about is that I think this new support is > a killer feature, and I would like to see it widely accessible and > advertised. I think people will find the ability to do turnkey math > text to be useful in many contexts where a full blown tex/dvipng > install is impractical. This is particularly true for folks > distributing apps to windows. Potential use cases are math in GUI > buttons, menus and other widgets, There is the mathtext_wx.py example for this. I was hoping experts in the other GUI toolkits could port this example to Gtk, Qt, Tk etc. (assuming it's doable). > math blitted into a vtk or other > canvas, webapp servers wanting to use math pngs etc... > > So I'd like at a minimum to move your latex2png into the mathtext > module (or the text module or wherever it belongs), probably rename it > mathtext2png to avoid confusion, and import that function into the > mathpng sphinx extension. I also think we should provide a math2array > which returns an rgba array that people can do what they want with. > I'm happy to do all this easy stuff now that you have done the hard > part, but I just wanted to bounce it off you in case you had any > suggestions. I'm curious about a couple of things in the mathpng > func: > > * why do you hardcode the math font to be 'cm'? > Just so that the documentation will always look the same, even if the machine on which the documentation is being generated specifies wacky math fonts. I considered adding a parameter to the "math" directive to select the fontset, but then realized that wouldn't work for LaTeX (where *real* TeX is used to render the math). I thought it best to have reasonable consistency between the HTML and PDF versions of the docs, so opted for "cm" as the default. > * why do you hardcode the dpi to be 120 -- is that just a stylistic > choice? It seemed to look the best inlined in HTML on my browser with my fonts. Totally subjective choice. For people with different monitor resolutions, font sizes etc. that obviously doesn't work. But that's more a limitation of HTML (or the HTML that Sphinx currently generates) than anything else. Note also that the inline math images are not baseline-adjusted. For that, we need to get a proper baseline out of mathtext, which currently isn't possible. > BTW, in semi-related news, it appears sphinx (at least my > version) ignores the scale on the image directives, which is why the > html images appear large and the PDF ones appear small. This is odd, > because on my system rst2html respects the scale directive so it > appears to be a buglet. > Could be. > Very nice work on the auto-generated symbol tables, btw. I consider that somewhat of a work in progress. It was important (to me at least) to have them somewhat sorted into categories, rather than just a jumbled or alphabetized list, but I still think they could be ordered better, and categorized at a finer level to pick things out faster. (See the "Comprehensive LaTeX Symbol List" for a reasonable way to do this). All that just takes busy work -- the infrastructure is already there. Another shortcoming is that the table is automatically "chunked" into 20 rows, since otherwise LaTeX will create a table that extends beyond the bottom of the page. But the chunking makes things look much less neat and is totally arbitrary. Finer-grained categories would be a good way around this. > I am eagerly > studying this sphinxext stuff -- very powerful. You know, Stefan > called for a sphinx presentation the other day for scipy 08, and I > think this kind of stuff would make a great talk if you are planning > on attending. > There does seem to be a recent convergence around Sphinx in the Scipy world, and matplotlib seems to be forging ahead a little bit (maybe that's just my impression from being in the middle of matplotlib more so than other projects). It would be great to have something like a Sphinx/Documentation BoF to share our experiences thus far, or perhaps a lightning talk (which at SciPy are 10 minutes) to outline what matplotlib has done wrt documentation. If Darren were going, he'd be ideal to give that talk, but I could probably manage as well. Cheers, Mike -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
Hi all, If I run the attached test I obtain an IndexError: Unexpected SeqBase<T> length python -i test_struve.py --verbose-helpful $HOME=/home/nwagner CONFIGDIR=/home/nwagner/.matplotlib matplotlib data path /usr/local/lib64/python2.5/site-packages/matplotlib/mpl-data loaded rc file /home/nwagner/.matplotlib/matplotlibrc matplotlib version 0.98.0 verbose.level helpful interactive is False units is False platform is linux2 Using fontManager instance from /home/nwagner/.matplotlib/fontManager.cache numerix numpy 1.2.0.dev5264 backend GTKAgg version 2.10.3 Found dvipng version 1.5 Traceback (most recent call last): File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_gtk.py", line 331, in expose_event self._render_figure(self._pixmap, w, h) File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_gtkagg.py", line 75, in _render_figure FigureCanvasAgg.draw(self) File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_agg.py", line 256, in draw self.figure.draw(self.renderer) File "/usr/local/lib64/python2.5/site-packages/matplotlib/figure.py", line 825, in draw for a in self.axes: a.draw(renderer) File "/usr/local/lib64/python2.5/site-packages/matplotlib/axes.py", line 1502, in draw a.draw(renderer) File "/usr/local/lib64/python2.5/site-packages/matplotlib/axis.py", line 674, in draw tick.draw(renderer) File "/usr/local/lib64/python2.5/site-packages/matplotlib/axis.py", line 173, in draw self.label1.draw(renderer) File "/usr/local/lib64/python2.5/site-packages/matplotlib/text.py", line 764, in draw Text.draw(self, renderer) File "/usr/local/lib64/python2.5/site-packages/matplotlib/text.py", line 298, in draw bbox, info = self._get_layout(renderer) File "/usr/local/lib64/python2.5/site-packages/matplotlib/text.py", line 198, in _get_layout line, self._fontproperties, ismath=self.is_math_text(line)) File "/usr/local/lib64/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/local/lib64/python2.5/site-packages/matplotlib/texmanager.py", line 367, in get_grey X = read_png(os.path.join(self.texcache, pngfile)) IndexError: Unexpected SeqBase<T> length. Any idea ? Nils
On Wed, Jun 11, 2008 at 12:25 PM, Michael Droettboom <md...@st...> 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. What I really wanted to talk about is that I think this new support is a killer feature, and I would like to see it widely accessible and advertised. I think people will find the ability to do turnkey math text to be useful in many contexts where a full blown tex/dvipng install is impractical. This is particularly true for folks distributing apps to windows. Potential use cases are math in GUI buttons, menus and other widgets, math blitted into a vtk or other canvas, webapp servers wanting to use math pngs etc... So I'd like at a minimum to move your latex2png into the mathtext module (or the text module or wherever it belongs), probably rename it mathtext2png to avoid confusion, and import that function into the mathpng sphinx extension. I also think we should provide a math2array which returns an rgba array that people can do what they want with. I'm happy to do all this easy stuff now that you have done the hard part, but I just wanted to bounce it off you in case you had any suggestions. I'm curious about a couple of things in the mathpng func: * why do you hardcode the math font to be 'cm'? * why do you hardcode the dpi to be 120 -- is that just a stylistic choice? BTW, in semi-related news, it appears sphinx (at least my version) ignores the scale on the image directives, which is why the html images appear large and the PDF ones appear small. This is odd, because on my system rst2html respects the scale directive so it appears to be a buglet. Very nice work on the auto-generated symbol tables, btw. I am eagerly studying this sphinxext stuff -- very powerful. You know, Stefan called for a sphinx presentation the other day for scipy 08, and I think this kind of stuff would make a great talk if you are planning on attending. JDH
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...) Cheers, Mike Michael Droettboom wrote: > Ah. I've got 0.5. I was hoping I wouldn't have to do that crazy > backward compatibility stuff that mathpng.py does, but it looks like > I'll have to to support 0.4. I'll look into this. > > Cheers, > Mike > > John Hunter wrote: > >> On Wed, Jun 11, 2008 at 12:05 PM, Michael Droettboom <md...@st...> wrote: >> >> >>> It's related to my recently updating pyparsing.py... It seems that it isn't >>> Python 2.4 compatible anymore. >>> >>> I'd like to workaround the definiciences in the new pyparsing.py if I can >>> (rather than simply revert) as the error messages are much more specific >>> with the new version. >>> >>> I have submitted a workaround to this specific problem. Can you please let >>> me know if it resolves your issue? >>> >>> >> That did it, I'll let you know if I see anything else. What version >> of docutils are you on? Now I am using docutils-0.4-py2.4.egg >> getting: >> >> >> File "/opt/tradelink/share/research/site-packages.beta/Sphinx-0.3-py2.4.egg/sphinx/application.py", >> line 123, in setup_extension >> raise ExtensionError('Could not import extension %s' % extension, err) >> ExtensionError: Could not import extension math_symbol_table >> (exception: cannot import name Directive) >> >> >> In [1]: import docutils >> >> In [2]: docutils.__version__ >> Out[2]: '0.4' >> >> > > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
Ah. I've got 0.5. I was hoping I wouldn't have to do that crazy backward compatibility stuff that mathpng.py does, but it looks like I'll have to to support 0.4. I'll look into this. Cheers, Mike John Hunter wrote: > On Wed, Jun 11, 2008 at 12:05 PM, Michael Droettboom <md...@st...> wrote: > >> It's related to my recently updating pyparsing.py... It seems that it isn't >> Python 2.4 compatible anymore. >> >> I'd like to workaround the definiciences in the new pyparsing.py if I can >> (rather than simply revert) as the error messages are much more specific >> with the new version. >> >> I have submitted a workaround to this specific problem. Can you please let >> me know if it resolves your issue? >> > > That did it, I'll let you know if I see anything else. What version > of docutils are you on? Now I am using docutils-0.4-py2.4.egg > getting: > > > File "/opt/tradelink/share/research/site-packages.beta/Sphinx-0.3-py2.4.egg/sphinx/application.py", > line 123, in setup_extension > raise ExtensionError('Could not import extension %s' % extension, err) > ExtensionError: Could not import extension math_symbol_table > (exception: cannot import name Directive) > > > In [1]: import docutils > > In [2]: docutils.__version__ > Out[2]: '0.4' > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
On Wed, Jun 11, 2008 at 12:05 PM, Michael Droettboom <md...@st...> wrote: > It's related to my recently updating pyparsing.py... It seems that it isn't > Python 2.4 compatible anymore. > > I'd like to workaround the definiciences in the new pyparsing.py if I can > (rather than simply revert) as the error messages are much more specific > with the new version. > > I have submitted a workaround to this specific problem. Can you please let > me know if it resolves your issue? That did it, I'll let you know if I see anything else. What version of docutils are you on? Now I am using docutils-0.4-py2.4.egg getting: File "/opt/tradelink/share/research/site-packages.beta/Sphinx-0.3-py2.4.egg/sphinx/application.py", line 123, in setup_extension raise ExtensionError('Could not import extension %s' % extension, err) ExtensionError: Could not import extension math_symbol_table (exception: cannot import name Directive) In [1]: import docutils In [2]: docutils.__version__ Out[2]: '0.4'
It's related to my recently updating pyparsing.py... It seems that it isn't Python 2.4 compatible anymore. I'd like to workaround the definiciences in the new pyparsing.py if I can (rather than simply revert) as the error messages are much more specific with the new version. I have submitted a workaround to this specific problem. Can you please let me know if it resolves your issue? Mike John Hunter wrote: > On Wed, Jun 11, 2008 at 11:24 AM, Michael Droettboom <md...@st...> wrote: > >> Thanks. Done. >> > > I wonder is there is some python 2.5 is creeping in somewhere. I am > experiencing the same mathtext problem I pointed out earlier: This > isn't related to your recent commit, but was introduced in r5380 > > 934 rm -rf build ~/dev/lib/python2.4/site-packages/matplotlib* > 935 sudo rm -rf build ~/dev/lib/python2.4/site-packages/matplotlib* > 936 rm -rf ~/.matplotlib/fontManager.cache ~/.matplotlib/tex.cache/ > ~/.matplotlib/ttffont.cache > 937 cd ~/python/svn/ > 938 make local_mpl > 939 cd ~/mpl/examples/pylab_examples/ > 940 python mathtext_demo.py > > I'm going to dig into this, but just wanted to let you know in case > something jumps out at you. > > Traceback (most recent call last): > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py", > line 331, in expose_event > self._render_figure(self._pixmap, w, h) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/backends/backend_gtkagg.py", > line 75, in _render_figure > FigureCanvasAgg.draw(self) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py", > line 256, in draw > self.figure.draw(self.renderer) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/figure.py", > line 825, in draw > for a in self.axes: a.draw(renderer) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/axes.py", > line 1502, in draw > a.draw(renderer) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/axis.py", > line 687, in draw > self.label.draw(renderer) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/text.py", > line 298, in draw > bbox, info = self._get_layout(renderer) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/text.py", > line 197, in _get_layout > w, h, d = renderer.get_text_width_height_descent( > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py", > line 134, in get_text_width_height_descent > ox, oy, width, height, descent, fonts, used_characters = \ > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/mathtext.py", > line 2714, in parse > box = self._parser.parse(s, font_output, fontsize, dpi) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/mathtext.py", > line 2188, in parse > self._expression.parseString(s) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 1049, in parseString loc, tokens = self._parse( instring, 0 ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 982, in _parseCache > value = self._parseNoCache( instring, loc, doActions, callPreParse ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 925, in _parseNoCache > loc,tokens = self.parseImpl( instring, preloc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 2560, in parseImpl > return self.expr._parse( instring, loc, doActions, callPreParse=False ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 982, in _parseCache > value = self._parseNoCache( instring, loc, doActions, callPreParse ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 925, in _parseNoCache > loc,tokens = self.parseImpl( instring, preloc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 2308, in parseImpl > loc, exprtokens = e._parse( instring, loc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 982, in _parseCache > value = self._parseNoCache( instring, loc, doActions, callPreParse ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 925, in _parseNoCache > loc,tokens = self.parseImpl( instring, preloc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 2673, in parseImpl > loc, tokens = self.expr._parse( instring, loc, doActions, > callPreParse=False ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 982, in _parseCache > value = self._parseNoCache( instring, loc, doActions, callPreParse ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 925, in _parseNoCache > loc,tokens = self.parseImpl( instring, preloc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 2308, in parseImpl > loc, exprtokens = e._parse( instring, loc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 982, in _parseCache > value = self._parseNoCache( instring, loc, doActions, callPreParse ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 925, in _parseNoCache > loc,tokens = self.parseImpl( instring, preloc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 2757, in parseImpl > loc, tokens = self.expr._parse( instring, loc, doActions, > callPreParse=False ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 982, in _parseCache > value = self._parseNoCache( instring, loc, doActions, callPreParse ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 925, in _parseNoCache > loc,tokens = self.parseImpl( instring, preloc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 2707, in parseImpl > loc, tokens = self.expr._parse( instring, loc, doActions, > callPreParse=False ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 982, in _parseCache > value = self._parseNoCache( instring, loc, doActions, callPreParse ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 925, in _parseNoCache > loc,tokens = self.parseImpl( instring, preloc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 2354, in parseImpl > loc2 = e.tryParse( instring, loc ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 967, in tryParse > return self._parse( instring, loc, doActions=False )[0] > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 982, in _parseCache > value = self._parseNoCache( instring, loc, doActions, callPreParse ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 925, in _parseNoCache > loc,tokens = self.parseImpl( instring, preloc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 2560, in parseImpl > return self.expr._parse( instring, loc, doActions, callPreParse=False ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 982, in _parseCache > value = self._parseNoCache( instring, loc, doActions, callPreParse ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 925, in _parseNoCache > loc,tokens = self.parseImpl( instring, preloc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 2417, in parseImpl > ret = e._parse( instring, loc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 982, in _parseCache > value = self._parseNoCache( instring, loc, doActions, callPreParse ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 925, in _parseNoCache > loc,tokens = self.parseImpl( instring, preloc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 2560, in parseImpl > return self.expr._parse( instring, loc, doActions, callPreParse=False ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 982, in _parseCache > value = self._parseNoCache( instring, loc, doActions, callPreParse ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 925, in _parseNoCache > loc,tokens = self.parseImpl( instring, preloc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 2560, in parseImpl > return self.expr._parse( instring, loc, doActions, callPreParse=False ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 982, in _parseCache > value = self._parseNoCache( instring, loc, doActions, callPreParse ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 925, in _parseNoCache > loc,tokens = self.parseImpl( instring, preloc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 2417, in parseImpl > ret = e._parse( instring, loc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 982, in _parseCache > value = self._parseNoCache( instring, loc, doActions, callPreParse ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 925, in _parseNoCache > loc,tokens = self.parseImpl( instring, preloc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 2294, in parseImpl > loc, resultlist = self.exprs[0]._parse( instring, loc, doActions, > callPreParse=False ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 982, in _parseCache > value = self._parseNoCache( instring, loc, doActions, callPreParse ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 925, in _parseNoCache > loc,tokens = self.parseImpl( instring, preloc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 2757, in parseImpl > loc, tokens = self.expr._parse( instring, loc, doActions, > callPreParse=False ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 982, in _parseCache > value = self._parseNoCache( instring, loc, doActions, callPreParse ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 925, in _parseNoCache > loc,tokens = self.parseImpl( instring, preloc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 2560, in parseImpl > return self.expr._parse( instring, loc, doActions, callPreParse=False ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 982, in _parseCache > value = self._parseNoCache( instring, loc, doActions, callPreParse ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 925, in _parseNoCache > loc,tokens = self.parseImpl( instring, preloc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 2354, in parseImpl > loc2 = e.tryParse( instring, loc ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 967, in tryParse > return self._parse( instring, loc, doActions=False )[0] > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 982, in _parseCache > value = self._parseNoCache( instring, loc, doActions, callPreParse ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 925, in _parseNoCache > loc,tokens = self.parseImpl( instring, preloc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 2560, in parseImpl > return self.expr._parse( instring, loc, doActions, callPreParse=False ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 982, in _parseCache > value = self._parseNoCache( instring, loc, doActions, callPreParse ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 925, in _parseNoCache > loc,tokens = self.parseImpl( instring, preloc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 2294, in parseImpl > loc, resultlist = self.exprs[0]._parse( instring, loc, doActions, > callPreParse=False ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 982, in _parseCache > value = self._parseNoCache( instring, loc, doActions, callPreParse ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 925, in _parseNoCache > loc,tokens = self.parseImpl( instring, preloc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 2294, in parseImpl > loc, resultlist = self.exprs[0]._parse( instring, loc, doActions, > callPreParse=False ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 982, in _parseCache > value = self._parseNoCache( instring, loc, doActions, callPreParse ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 925, in _parseNoCache > loc,tokens = self.parseImpl( instring, preloc, doActions ) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 2304, in parseImpl > raise ParseSyntaxException(pe) > File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", > line 216, in __init__ > super(ParseSyntaxException, self).__init__( > TypeError: super() argument 1 must be type, not classobj > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
On Wed, Jun 11, 2008 at 11:53 AM, John Hunter <jd...@gm...> wrote: > On Wed, Jun 11, 2008 at 11:24 AM, Michael Droettboom <md...@st...> wrote: >> Thanks. Done. > > I wonder is there is some python 2.5 is creeping in somewhere. I also notice you upgraded pyparsing in that revision, so that may be the source of the problems. I'm tried reverting pyparsing alone in hopes that that would give us a clue, but it appears you are using some of the new features, because I now get: File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/mathtext.py", line 2714, in parse self.__class__._parser = Parser() File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/mathtext.py", line 2027, in __init__ start_group = (Optional(latexfont) - lbrace) TypeError: unsupported operand type(s) for -: 'Optional' and 'Suppress'
On Wed, Jun 11, 2008 at 11:24 AM, Michael Droettboom <md...@st...> wrote: > Thanks. Done. I wonder is there is some python 2.5 is creeping in somewhere. I am experiencing the same mathtext problem I pointed out earlier: This isn't related to your recent commit, but was introduced in r5380 934 rm -rf build ~/dev/lib/python2.4/site-packages/matplotlib* 935 sudo rm -rf build ~/dev/lib/python2.4/site-packages/matplotlib* 936 rm -rf ~/.matplotlib/fontManager.cache ~/.matplotlib/tex.cache/ ~/.matplotlib/ttffont.cache 937 cd ~/python/svn/ 938 make local_mpl 939 cd ~/mpl/examples/pylab_examples/ 940 python mathtext_demo.py I'm going to dig into this, but just wanted to let you know in case something jumps out at you. Traceback (most recent call last): File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py", line 331, in expose_event self._render_figure(self._pixmap, w, h) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/backends/backend_gtkagg.py", line 75, in _render_figure FigureCanvasAgg.draw(self) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py", line 256, in draw self.figure.draw(self.renderer) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/figure.py", line 825, in draw for a in self.axes: a.draw(renderer) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/axes.py", line 1502, in draw a.draw(renderer) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/axis.py", line 687, in draw self.label.draw(renderer) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/text.py", line 298, in draw bbox, info = self._get_layout(renderer) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/text.py", line 197, in _get_layout w, h, d = renderer.get_text_width_height_descent( File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py", line 134, in get_text_width_height_descent ox, oy, width, height, descent, fonts, used_characters = \ File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/mathtext.py", line 2714, in parse box = self._parser.parse(s, font_output, fontsize, dpi) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/mathtext.py", line 2188, in parse self._expression.parseString(s) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 1049, in parseString loc, tokens = self._parse( instring, 0 ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 982, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 925, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 2560, in parseImpl return self.expr._parse( instring, loc, doActions, callPreParse=False ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 982, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 925, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 2308, in parseImpl loc, exprtokens = e._parse( instring, loc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 982, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 925, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 2673, in parseImpl loc, tokens = self.expr._parse( instring, loc, doActions, callPreParse=False ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 982, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 925, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 2308, in parseImpl loc, exprtokens = e._parse( instring, loc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 982, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 925, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 2757, in parseImpl loc, tokens = self.expr._parse( instring, loc, doActions, callPreParse=False ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 982, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 925, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 2707, in parseImpl loc, tokens = self.expr._parse( instring, loc, doActions, callPreParse=False ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 982, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 925, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 2354, in parseImpl loc2 = e.tryParse( instring, loc ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 967, in tryParse return self._parse( instring, loc, doActions=False )[0] File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 982, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 925, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 2560, in parseImpl return self.expr._parse( instring, loc, doActions, callPreParse=False ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 982, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 925, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 2417, in parseImpl ret = e._parse( instring, loc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 982, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 925, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 2560, in parseImpl return self.expr._parse( instring, loc, doActions, callPreParse=False ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 982, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 925, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 2560, in parseImpl return self.expr._parse( instring, loc, doActions, callPreParse=False ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 982, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 925, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 2417, in parseImpl ret = e._parse( instring, loc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 982, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 925, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 2294, in parseImpl loc, resultlist = self.exprs[0]._parse( instring, loc, doActions, callPreParse=False ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 982, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 925, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 2757, in parseImpl loc, tokens = self.expr._parse( instring, loc, doActions, callPreParse=False ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 982, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 925, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 2560, in parseImpl return self.expr._parse( instring, loc, doActions, callPreParse=False ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 982, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 925, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 2354, in parseImpl loc2 = e.tryParse( instring, loc ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 967, in tryParse return self._parse( instring, loc, doActions=False )[0] File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 982, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 925, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 2560, in parseImpl return self.expr._parse( instring, loc, doActions, callPreParse=False ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 982, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 925, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 2294, in parseImpl loc, resultlist = self.exprs[0]._parse( instring, loc, doActions, callPreParse=False ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 982, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 925, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 2294, in parseImpl loc, resultlist = self.exprs[0]._parse( instring, loc, doActions, callPreParse=False ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 982, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 925, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 2304, in parseImpl raise ParseSyntaxException(pe) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py", line 216, in __init__ super(ParseSyntaxException, self).__init__( TypeError: super() argument 1 must be type, not classobj
You're welcome. Sorry I forgot to let you and the list know about it. ;) Cheers, Mike Stan West wrote: > Mike, > > I just noticed your revision 5402 to image.py. Thank you for addressing > this. > > Stan > > > -----Original Message----- > From: Michael Droettboom [mailto:md...@st...] > Sent: Thursday, June 05, 2008 12:03 > To: Stan West > Cc: mat...@li... > Subject: Re: [matplotlib-devel] One-pixel gap sometimes appears between > AxesImage and axis frame > > This happens because the axes rectangle is rounded to the nearest pixels by > (essentially, hand-waving over the details) doing > > (int)x0, (int)y0, (int)x1, (int)y1 > > where x0, y0, x1, y1 are the bounds of the box, whereas images are rounded > to the nearest pixels by: > > (int)x0, (int)y0, (int)x0 + (int)width, (int)y0 + (int)height > > This should be fixable, but the implementation details make it a little > tricky. I'm looking into this and will get back to you. > > Cheers, > Mike > > Stan West wrote: > >> Hi. When I generate an AxesImage with, say, imshow(array([[0, 1], [1, >> 0]])), a one-pixel gap sometimes appears between the image and the >> bottom and/or right edges of the axis frame. The gap is sometimes >> shaded, as if by anti-aliasing. The presence and shading of the gap >> depends on the axis size, figure size, and figure dpi. In particular, >> the gap comes and goes as I resize the figure. I've observed this >> using the WXAgg and TkAgg backends under matplotlib 0.98.0. >> >> I checked the trackers and mailing list archives but found no previous >> mention of this behavior. >> >> I looked into image.py but didn't readily see what might be responsible. >> Would someone in the know be willing to investigate? Many thanks in >> advance. >> >> >> >> ---------------------------------------------------------------------- >> --- 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 >> Mat...@li... >> 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 > > > > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
On Jun 11, 2008, at 11:47 AM, John Hunter wrote: > On Wed, Jun 11, 2008 at 10:13 AM, Tony Yu <ts...@gm...> wrote: >> I apologize if this doesn't belong in the developers mailing list: >> When I run image_demo.py in examples/pylab (using mpl r, I >> get AttributeError: set_resample. >> This error seems to have been introduced in revision 5433 with the >> agg >> resample patch (i.e. image_demo.py works fine with r5432). > > I think you may be getting your mpl versions mixed up -- svn trunk > does not have examples/pylab/image_demo.py. The directory has been > renamed examples/pylab_examples to avoid code breakage for people > importing pylab and running in the examples dir. The image_demo > example is running for me on the trunk. Actually I mistyped earlier; I was using image_demo from pylab_examples. In any case, an svn up fixed the problem. Strangely enough, reverting back to the revision that was originally raising errors didn't bring the errors back. I must have been running a cached version of one of the files. Thanks for your help. -Tony
Thanks. Done. John Hunter wrote: > On Wed, Jun 11, 2008 at 10:52 AM, Michael Droettboom <md...@st...> wrote: > >> I finished moving all of the PNG reading/writing to its own module. A >> full rebuild is probably required after this change to ensure everything >> is working correctly. >> > > > src/_png.cpp: No such file or directory > > Looks like an svn add is needed... > > JDH > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
On Wed, Jun 11, 2008 at 10:52 AM, Michael Droettboom <md...@st...> wrote: > I finished moving all of the PNG reading/writing to its own module. A > full rebuild is probably required after this change to ensure everything > is working correctly. src/_png.cpp: No such file or directory Looks like an svn add is needed... JDH