Re: [Matplotlib-users] py4science OSX installation problems
Alternatively, if you're only building this for your own use and not for packaging a Universal Binary you want PowerPC users to be able to use, you could simply eliminate the ppc arch flags in the Makefile inside /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config/ On Mon, Apr 21, 2008 at 5:24 PM, jules hummon [EMAIL PROTECTED] wrote: Hello OSX SVN MPL users I am following the instructions on http://ipython.scipy.org/moin/Py4Science/InstallationOSX and ran into some trouble. The computer is a 13 intel macbook, OSX 10.5.2 installed fresh in December 2007 Everything went reasonably well until I got to matplotlib. I ran into an architecture incompatibility: ** ld: warning [snip] missing required architecture ppc in file My notes, along with various comments and links to error output etc, are contained in this link: http://currents.soest.hawaii.edu/misc/mins_notes/py4science_anotes.html Any comments and/or help would be appreciated. Jules - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] py4science OSX installation problems
On 23/04/2008, Joshua Lippai [EMAIL PROTECTED] wrote: Alternatively, if you're only building this for your own use and not for packaging a Universal Binary you want PowerPC users to be able to use, you could simply eliminate the ppc arch flags in the Makefile inside /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config/ Apologies for perhaps raising an old chestnut here but these issues would not arise if we had separate intel and ppc MacPython binaries. George Nurser. - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] BUG: python exists when savefig(None) is called
I'm on Windows with python 2.5. How do I find the version of matplotlib? I think it is fairly recent (within last 6 months anyhow). Shouldn't an error be raised? See: C:\Dev\MyProjects\Bio\hmm\pythonpython Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. from pylab import figure, savefig figure() matplotlib.figure.Figure instance at 0x0191D210 savefig(None) C:\Dev\MyProjects\Bio\hmm\pythonpython ... and so back to DOS prompt John. - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] BUG: python exists when savefig(None) is called
Hi John, On Wednesday 23 April 2008 12:28:11 John Reid wrote: I'm on Windows with python 2.5. How do I find the version of matplotlib? I think it is fairly recent (within last 6 months anyhow). import matplotlib print matplotlib.__version__ Shouldn't an error be raised? On my Kubuntu 7.10 and WinXP with matplotlib 0.91.2 an error is raised in python and ipython. Something like: type 'exceptions.TypeError': Object does not appear to be a path or a Python file-like object . regards Matthias See: C:\Dev\MyProjects\Bio\hmm\pythonpython Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. from pylab import figure, savefig figure() matplotlib.figure.Figure instance at 0x0191D210 savefig(None) C:\Dev\MyProjects\Bio\hmm\pythonpython ... and so back to DOS prompt John. - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] 'plot' broken on latest svn
Hello, I've just updated to the latest svn (5063) and now I cannot create a simple plot. If I just try (in ipython -pylab): plot(rand(10)) I get: type 'exceptions.AttributeError': 'module' object has no attribute 'masked_invalid' The complete traceback is pasted below. (My numpy version is 1.0.4, which indeed has no 'numpy.ma.masked_invalid'.) Regards, Antonio --- In [1]: plot(rand(10)) --- type 'exceptions.AttributeError'Traceback (most recent call last) /home/antgon/heka/ipython console in module() /usr/local/lib/python2.5/site-packages/matplotlib/pyplot.py in plot(*args, **kwargs) 1826 hold(h) 1827 try: - 1828 ret = gca().plot(*args, **kwargs) 1829 draw_if_interactive() 1830 except: /usr/local/lib/python2.5/site-packages/matplotlib/axes.py in plot(self, *args, **kwargs) 2803 2804 for line in self._get_lines(*args, **kwargs): - 2805 self.add_line(line) 2806 lines.append(line) 2807 /usr/local/lib/python2.5/site-packages/matplotlib/axes.py in add_line(self, line) 1163 line.set_clip_path(self.axesPatch) 1164 - 1165 self._update_line_limits(line) 1166 if not line.get_label(): 1167 line.set_label('_line%d'%len(self.lines)) /usr/local/lib/python2.5/site-packages/matplotlib/axes.py in _update_line_limits(self, line) 1171 def _update_line_limits(self, line): 1172 xydata = line.get_xydata() - 1173 self.update_datalim( xydata ) 1174 1175 def add_patch(self, p): /usr/local/lib/python2.5/site-packages/matplotlib/axes.py in update_datalim(self, xys) 1219 if not ma.isMaskedArray(xys): 1220 xys = npy.asarray(xys) - 1221 self.dataLim.update_from_data_xy(xys, self.ignore_existing_data_limits) 1222 self.ignore_existing_data_limits = False 1223 /usr/local/lib/python2.5/site-packages/matplotlib/transforms.py in update_from_data_xy(self, xy, ignore) 694 if len(xy) == 0: 695 return -- 696 xym = ma.masked_invalid(xy) 697 if (xym.count(axis=1)!=2).all(): 698 return type 'exceptions.AttributeError': 'module' object has no attribute 'masked_invalid' - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] win32 build error in _path.cpp: 'numeric_limits' : is not a member of 'std'
It doesn't appear to exist in VS2008 -- at least I can't find it in the online docs. Maybe someone else can enlighten me. In the meantime, I just wrote my own round function and switched to use that. Please update from SVN and let me know how it goes. And again, thank you for your patience. Cheers, Mike Martin Spacek wrote: round() is defined in math.h so adding #include math.h to the top of the file might fix it. Thanks for your patience! Mike Just tried the latest rev where you've added math.h to the top, still get the same error. Apparently round isn't defined in math.h: C:\home\mspacek\Desktop\mplpython setup.py build_ext BUILDING MATPLOTLIB matplotlib: 0.98pre python: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] platform: win32 Windows version: (5, 1, 2600, 2, 'Service Pack 2') REQUIRED DEPENDENCIES numpy: 1.1.0.dev5061 freetype2: found, but unknown version (no pkg-config) OPTIONAL BACKEND DEPENDENCIES libpng: found, but unknown version (no pkg-config) Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 wxPython: 2.8.6.0 * WxAgg extension not required for wxPython = 2.8 Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to import gtk in your build/install environment Qt: no Qt4: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: matplotlib will provide pytz: matplotlib will provide OPTIONAL USETEX DEPENDENCIES dvipng: 1.9 ghostscript: 'gswin32c' is not recognized as an internal or external command, operable program or batch file. latex: no EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES configobj: matplotlib will provide enthought.traits: matplotlib will provide [Edit setup.cfg to suppress the above messages] running build_ext building 'matplotlib.ft2font' extension C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. - Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/ft2font.cpp /Fobuild \temp.win32-2.5\Release\src/ft2font.obj ft2font.cpp src\ft2font.cpp(947) : warning C4244: 'initializing' : conversion from 'FT_Long' to 'FT_Bool', possible loss of data C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. - Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /Tpsrc/mplutils.cpp /Fobuil d\temp.win32-2.5\Release\src/mplutils.obj mplutils.cpp C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. - Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\cxxsupport.cxx /Fobu ild\temp.win32-2.5\Release\CXX\cxxsupport.obj cxxsupport.cxx C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. - Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\cxx_extensions.cxx / Fobuild\temp.win32-2.5\Release\CXX\cxx_extensions.obj cxx_extensions.cxx C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. - Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TpCXX\IndirectPythonInterf ace.cxx /Fobuild\temp.win32-2.5\Release\CXX\IndirectPythonInterface.obj IndirectPythonInterface.cxx C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static\include -I. - Iwin32_static\include\freetype2 -I.\freetype2 -IC:\bin\Python25\include -IC:\bin\Python25\PC /TcCXX\cxxextensions.c /Fob uild\temp.win32-2.5\Release\CXX\cxxextensions.obj cxxextensions.c creating build\lib.win32-2.5 creating build\lib.win32-2.5\matplotlib C:\bin\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:win32_static\lib /LIBPAT H:C:\bin\Python25\libs /LIBPATH:C:\bin\Python25\PCBuild freetype.lib z.lib /EXPORT:initft2font build\temp.win32-2.5\Rele ase\src/ft2font.obj build\temp.win32-2.5\Release\src/mplutils.obj build\temp.win32-2.5\Release\CXX\cxxsupport.obj build\ temp.win32-2.5\Release\CXX\cxx_extensions.obj build\temp.win32-2.5\Release\CXX\IndirectPythonInterface.obj
Re: [Matplotlib-users] BUG: python exists when savefig(None) is called
Matthias Michler wrote: Hi John, On Wednesday 23 April 2008 12:28:11 John Reid wrote: I'm on Windows with python 2.5. How do I find the version of matplotlib? I think it is fairly recent (within last 6 months anyhow). import matplotlib print matplotlib.__version__ John, thanks for asking, Matthias for answering, this question, which I've always been afraid to ask... :) -Kaushik - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] BUG: python exists when savefig(None) is called
So I have: In [2]: import matplotlib; print matplotlib.__version__ 0.90.1 Why does pylab not have __version__? So I guess it was fixed between 0.90.1 and 0.91.2 Thanks, John. - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] BUG: python exists when savefig(None) is called
Hello John, On Wednesday 23 April 2008 15:24:30 John Reid wrote: So I have: In [2]: import matplotlib; print matplotlib.__version__ 0.90.1 Why does pylab not have __version__? I'm not an expert, but the pylab.__doc__ states This is a procedural interface to the matplotlib object-oriented plotting library. So I guess it was fixed between 0.90.1 and 0.91.2 I don't know. On my debian etch with matplotlib 0.90.0 also an error is raised, but different to the one of mpl 0.91.2 (AttributeError: 'NoneType' object has no attribute 'rfind'). Maybe in between there was a time where this problem occured. Is it possible for you to update to 0.91.2? regards and good luck! Matthias - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] BUG: python exists when savefig(None) is called
[sorry for so many mails] On Wednesday 23 April 2008 15:54:42 Matthias Michler wrote: Hello John, On Wednesday 23 April 2008 15:24:30 John Reid wrote: So I have: In [2]: import matplotlib; print matplotlib.__version__ 0.90.1 I just found a PC with Debian etch and matplotlib 0.90.1 and the following error arises for me (no program exit): TypeError: Could not convert object to file pointer - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] failed to save in 'eps' format when I use latex environment
I'm using matplotlib 0.9.12 from ubuntu hardy 8.04. To take advantage of the LaTeX handling capability in matplotlib, I've added next two lines in /etc/matplotlib text.usetex : True text.latex.preamble : \usepackage{amsmath} Then, I tried next test code. from pylab import * x = []; y = [] figure(figsize=(2,2)) plot(x,y,label=r'$\theta=$0.0deg'); axis([0,1,0,1]); legend() text(0.5, 0.5, r'\begin{align*}x=\alpha\\y=\beta\end{align*}') savefig('test.eps') However, I've got the following error message without a resulting eps file. Traceback (most recent call last): File test.py, line 6, in module savefig('test.eps') File /usr/lib/python2.5/site-packages/matplotlib/pyplot.py, line 269, in savefig return fig.savefig(*args, **kwargs) File /usr/lib/python2.5/site-packages/matplotlib/figure.py, line 782, in savefig self.canvas.print_figure(*args, **kwargs) File /usr/lib/python2.5/site-packages/matplotlib/backend_bases.py, line 1195, in print_figure **kwargs) File /usr/lib/python2.5/site-packages/matplotlib/backend_bases.py, line 1099, in print_eps return ps.print_eps(*args, **kwargs) File /usr/lib/python2.5/site-packages/matplotlib/backends/backend_ps.py, line 1018, in print_eps return self._print_ps(outfile, 'eps', *args, **kwargs) File /usr/lib/python2.5/site-packages/matplotlib/backends/backend_ps.py, line 1041, in _print_ps orientation, isLandscape, papertype) File /usr/lib/python2.5/site-packages/matplotlib/backends/backend_ps.py, line 1289, in _print_figure_tex orientation) File /usr/lib/python2.5/site-packages/matplotlib/backends/backend_ps.py, line 1376, in convert_psfrags \nHere is the full report generated by LaTeX: \n\n%s'% fh.read()) RuntimeError: LaTeX was not able to process your file: Here is the full report generated by LaTeX: This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) %-line parsing enabled. entering extended mode (/tmp/8c18ecc500de49027f0ed1df1bec10b8.tex LaTeX2e 2005/12/01 Babel v3.8h and hyphenation patterns for english, usenglishmax, dumylang, noh yphenation, loaded. (/usr/share/texmf-texlive/tex/latex/base/article.cls Document Class: article 2005/09/16 v1.4f Standard LaTeX document class (/usr/share/texmf-texlive/tex/latex/base/size10.clo)) (/usr/share/texmf-texlive/tex/latex/type1cm/type1cm.sty) (/usr/share/texmf-texlive/tex/latex/psnfss/helvet.sty (/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)) (/usr/share/texmf-texlive/tex/latex/psnfss/courier.sty) (/usr/share/texmf-texlive/tex/latex/base/textcomp.sty (/usr/share/texmf-texlive/tex/latex/base/ts1enc.def)) (/usr/share/texmf-texlive/tex/latex/amsmath/amsmath.sty For additional information on amsmath, use the `?' option. (/usr/share/texmf-texlive/tex/latex/amsmath/amstext.sty (/usr/share/texmf-texlive/tex/latex/amsmath/amsgen.sty)) (/usr/share/texmf-texlive/tex/latex/amsmath/amsbsy.sty) (/usr/share/texmf-texlive/tex/latex/amsmath/amsopn.sty)) (/usr/share/texmf-texlive/tex/latex/geometry/geometry.sty Package geometry Warning: Over-specification in `h'-direction. `width' (614.295pt) is ignored. Package geometry Warning: Over-specification in `v'-direction. `height' (794.96999pt) is ignored. ) (/usr/share/texmf-texlive/tex/latex/psfrag/psfrag.sty (/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty (/usr/share/texmf-texlive/tex/latex/graphics/trig.sty) (/etc/texmf/tex/latex/config/graphics.cfg) (/usr/share/texmf-texlive/tex/latex/graphics/dvips.def))) (/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty) (/usr/share/texmf-texlive/tex/latex/graphics/color.sty (/etc/texmf/tex/latex/config/color.cfg) (/usr/share/texmf-texlive/tex/latex/graphics/dvipsnam.def)) (./8c18ecc500de49027f0ed1df1bec10b8.aux) (/usr/share/texmf-texlive/tex/latex/base/ts1cmr.fd) (/usr/share/texmf-texlive/tex/latex/psnfss/ot1pnc.fd) 8c18ecc500de49027f0ed1df1bec10b8.eps (/usr/share/texmf-texlive/tex/latex/psnfss/ot1phv.fd) ! Missing \endgroup inserted. inserted text \endgroup l.32 ...e=0]{8c18ecc500de49027f0ed1df1bec10b8.eps} ! Missing } inserted. inserted text } l.32 ...e=0]{8c18ecc500de49027f0ed1df1bec10b8.eps} ! Missing \endgroup inserted. inserted text \endgroup l.32 ...e=0]{8c18ecc500de49027f0ed1df1bec10b8.eps} ! Missing } inserted. inserted text } l.32 ...e=0]{8c18ecc500de49027f0ed1df1bec10b8.eps} ! LaTeX Error: There's no line here to end. See the LaTeX manual or LaTeX Companion for explanation. Type H return for immediate help. ... l.32 ...e=0]{8c18ecc500de49027f0ed1df1bec10b8.eps} ! Missing $ inserted. inserted text $ l.32 ...e=0]{8c18ecc500de49027f0ed1df1bec10b8.eps} ! Missing } inserted. inserted text } l.32 ...e=0]{8c18ecc500de49027f0ed1df1bec10b8.eps} ! Missing } inserted. inserted text } l.32 ...e=0]{8c18ecc500de49027f0ed1df1bec10b8.eps} ! Missing } inserted.
Re: [Matplotlib-users] 'plot' broken on latest svn
Antonio, Thanks for the report. It should be fixed now. Numpy svn has masked_invalid, so my earlier change worked for me, and I forgot that ma.masked_invalid is a new addition (and a nice one). Eric Antonio Gonzalez wrote: Hello, I've just updated to the latest svn (5063) and now I cannot create a simple plot. If I just try (in ipython -pylab): plot(rand(10)) I get: type 'exceptions.AttributeError': 'module' object has no attribute 'masked_invalid' The complete traceback is pasted below. (My numpy version is 1.0.4, which indeed has no 'numpy.ma.masked_invalid'.) Regards, Antonio --- In [1]: plot(rand(10)) --- type 'exceptions.AttributeError'Traceback (most recent call last) /home/antgon/heka/ipython console in module() /usr/local/lib/python2.5/site-packages/matplotlib/pyplot.py in plot(*args, **kwargs) 1826 hold(h) 1827 try: - 1828 ret = gca().plot(*args, **kwargs) 1829 draw_if_interactive() 1830 except: /usr/local/lib/python2.5/site-packages/matplotlib/axes.py in plot(self, *args, **kwargs) 2803 2804 for line in self._get_lines(*args, **kwargs): - 2805 self.add_line(line) 2806 lines.append(line) 2807 /usr/local/lib/python2.5/site-packages/matplotlib/axes.py in add_line(self, line) 1163 line.set_clip_path(self.axesPatch) 1164 - 1165 self._update_line_limits(line) 1166 if not line.get_label(): 1167 line.set_label('_line%d'%len(self.lines)) /usr/local/lib/python2.5/site-packages/matplotlib/axes.py in _update_line_limits(self, line) 1171 def _update_line_limits(self, line): 1172 xydata = line.get_xydata() - 1173 self.update_datalim( xydata ) 1174 1175 def add_patch(self, p): /usr/local/lib/python2.5/site-packages/matplotlib/axes.py in update_datalim(self, xys) 1219 if not ma.isMaskedArray(xys): 1220 xys = npy.asarray(xys) - 1221 self.dataLim.update_from_data_xy(xys, self.ignore_existing_data_limits) 1222 self.ignore_existing_data_limits = False 1223 /usr/local/lib/python2.5/site-packages/matplotlib/transforms.py in update_from_data_xy(self, xy, ignore) 694 if len(xy) == 0: 695 return -- 696 xym = ma.masked_invalid(xy) 697 if (xym.count(axis=1)!=2).all(): 698 return type 'exceptions.AttributeError': 'module' object has no attribute 'masked_invalid' - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] 'plot' broken on latest svn
On Wed, Apr 23, 2008 at 6:45 AM, Antonio Gonzalez [EMAIL PROTECTED] wrote: Hello, I've just updated to the latest svn (5063) and now I cannot create a simple plot. If I just try (in ipython -pylab): plot(rand(10)) I get: type 'exceptions.AttributeError': 'module' object has no attribute 'masked_invalid' matplotlib svn requires numpy svn. Try upgrading your numpy and I think this bug will go away. JDH - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] AssertionError On ax.draw_artist() ????
On Sat, Apr 19, 2008 at 11:23 PM, hjc520070 [EMAIL PROTECTED] wrote: I work matplotlib on wxpython, python2.5. It is wonderful that the following code work faster than canvas.draw(). canvas.restore_region(background) ##Updata three lines and draw it. line.set_data(x,y) ax.draw_artist(line) canvas.blit(ax.bbox) canvas.gui_repaint() When I creat a frame and set frame.Show(True). Then ,refresh the line on canvas with above method. It works. However,When I creat a frame and set frame.Show(False). Then ,refresh the line on canvas with above method. It fails. And get the following message. ''' File C:\Python25\Lib\site-packages\matplotlib\axes.py, line 1299, in draw_artist assert self._cachedRenderer is not None AssertionError ''' I creat a lot of frames and do not want to show it at frist. However, when with frame.Show(False), I can refresh the canvas. Is there any solution? Could anyone help me? Your help will be appreciated a lot. Thanks. You cannot call draw_artist until after the initial draw. So you will either need to explicitly call fig.canvas.draw() first or put your draw_artist command in a GUI handler that is not called until after the initial draw event. JDH - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Custom Pie-Like Marker In Scatter
On Fri, Apr 18, 2008 at 2:49 AM, Manuel Metz [EMAIL PROTECTED] wrote: as you already suggested, you have to do a little hand-work, but its not too hard. I attached an example, which you can use as a starting point... Hey Manuel -- very cool example. I added this example to the svn trunk (rewritten slightly to conform to recommended import style) as examples/scatter_piecharts.py Cool stuff, JDH - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] legend is not properly drawn when a plot is saved in 'pdf' format
This bug seems to be Cairo-backend specific. The Python PDF backend seems to work fine. Most likely a problem in the Cairo backend and not Cairo itself, but I haven't dug any further. Cheers, Mike Joshua Lippai wrote: I just tested it on OS X using the wxAgg backend, and it appears to be fine. I've atached the pdf image. What GUI are you having matplotlib use? Josh On Wed, Apr 23, 2008 at 8:50 AM, Yong-Duk Jin [EMAIL PROTECTED] wrote: I'm using matplotlib 0.91.2 from ubuntu hardy 8.04 When I saved a plot in a pdf format the legend is not properly drawn. I attached the figure to demonstrate the problem. The legend box(?) is smaller than the legend label. I used the following code to draw this test plot. from pylab import * x = []; y = [] figure(figsize=(2,2)) Angle = '0.0' plot(x,y,label='0.0deg'); axis([0,1,0,1]); legend() savefig('test.pdf') Any comment? -- Yong-Duk Jin - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] draw() doesn't always force draw on qt4?
Hello, I'm using today's svn source and I'm surprised that the following loop does not get redrawn 10 times. for it in range( 10 ): plot( arange( it ) ) draw() raw_input(); That is, within a 'ipython -pylab' session. Is this really a question for the ipython folks? Or am I missing something here? Thank you, Glen Mabey - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] problems installing matplotlib on RHEL5 with easy_install
I'm experimenting with installing a full python/numpy/scipy/matplotlib etc. suite on a RedHat Enterprise 5 system, and trying to document what would be the simplest procedure to accomplish each step. I managed to install numpy using easy_install, but when I tried to install matplotlib using the same tool, I get the following errors: error: Setup script exited with error: Command gcc -pthread -fno- strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes - fPIC -I/usr/local/include -I/usr/include -I. -I/usr/local/include/ freetype2 -I/usr/include/freetype2 -I./freetype2 -I/usr/local/include/ python2.5 -c src/ft2font.cpp -o build/temp.linux-x86_64-2.5/src/ ft2font.o failed with exit status 1 Exception exceptions.OSError: (2, 'No such file or directory', 'src/ image.cpp') in bound method CleanUpFile.__del__ of setupext.CleanUpFile instance at 0x1150f710 ignored Exception exceptions.OSError: (2, 'No such file or directory', 'src/ transforms.cpp') in bound method CleanUpFile.__del__ of setupext.CleanUpFile instance at 0x11510950 ignored Exception exceptions.OSError: (2, 'No such file or directory', 'src/ backend_agg.cpp') in bound method CleanUpFile.__del__ of setupext.CleanUpFile instance at 0x1150f3f8 ignored Any tips? Do I need to install some sort of back-end infrastructure first? I'll be happy to provide more detailed error messages, or do some basic tests. Thanks, Mike -- Michael Hearne [EMAIL PROTECTED] (303) 273-8620 USGS National Earthquake Information Center 1711 Illinois St. Golden CO 80401 Senior Software Engineer Synergetics, Inc. -- - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] problem with dynamic subplots and wx
Hello, I just upgraded a number of things on my Mac OS X (Tiger) machine, including to the latest version of wx and matplotlib. I found that there is a bug in the display of dynamic plots with subplots. If I change the subplot line in the examples/dynamic_demo_wx.py to: a = self.fig.add_subplot(221) instead of a = self.fig.add_subplot(111) the plot never shows. It works for 111, and for 121, but not 221. Not sure why! It works in interactive mode, in ipython, but not in dynamic plot. Any ideas? thanks, Brian Blais -- Brian Blais [EMAIL PROTECTED] http://web.bryant.edu/~bblais - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] failed to save in 'eps' format when I use latex environment
On Wednesday 23 April 2008 11:35:36 am Yong-Duk Jin wrote: I'm using matplotlib 0.9.12 from ubuntu hardy 8.04. To take advantage of the LaTeX handling capability in matplotlib, I've added next two lines in /etc/matplotlib text.usetex : True text.latex.preamble : \usepackage{amsmath} If I may quote from the matplotlibrc file: #text.latex.preamble : # IMPROPER USE OF THIS FEATURE WILL LEAD TO LATEX FAILURES # AND IS THEREFORE UNSUPPORTED. PLEASE DO NOT ASK FOR HELP # IF THIS FEATURE DOES NOT DO WHAT YOU EXPECT IT TO. Then, I tried next test code. from pylab import * x = []; y = [] figure(figsize=(2,2)) plot(x,y,label=r'$\theta=$0.0deg'); axis([0,1,0,1]); legend() text(0.5, 0.5, r'\begin{align*}x=\alpha\\y=\beta\end{align*}') savefig('test.eps') However, I've got the following error message without a resulting eps file. It looks like the text line is a problem. Latex doesnt like use of align or eqnarray environments inside figures. It looks like a latex limitation, not matplotlib. On the other hand, if you can figure out how to make it work in latex, and can prove that it is a limitation in matplotlib, please let me know so we can fix it. Traceback (most recent call last): File test.py, line 6, in module savefig('test.eps') File /usr/lib/python2.5/site-packages/matplotlib/pyplot.py, line 269, in savefig return fig.savefig(*args, **kwargs) File /usr/lib/python2.5/site-packages/matplotlib/figure.py, line 782, in savefig self.canvas.print_figure(*args, **kwargs) File /usr/lib/python2.5/site-packages/matplotlib/backend_bases.py, line 1195, in print_figure **kwargs) File /usr/lib/python2.5/site-packages/matplotlib/backend_bases.py, line 1099, in print_eps return ps.print_eps(*args, **kwargs) File /usr/lib/python2.5/site-packages/matplotlib/backends/backend_ps.py, line 1018, in print_eps return self._print_ps(outfile, 'eps', *args, **kwargs) File /usr/lib/python2.5/site-packages/matplotlib/backends/backend_ps.py, line 1041, in _print_ps orientation, isLandscape, papertype) File /usr/lib/python2.5/site-packages/matplotlib/backends/backend_ps.py, line 1289, in _print_figure_tex orientation) File /usr/lib/python2.5/site-packages/matplotlib/backends/backend_ps.py, line 1376, in convert_psfrags \nHere is the full report generated by LaTeX: \n\n%s'% fh.read()) RuntimeError: LaTeX was not able to process your file: Here is the full report generated by LaTeX: This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) %-line parsing enabled. entering extended mode (/tmp/8c18ecc500de49027f0ed1df1bec10b8.tex LaTeX2e 2005/12/01 Babel v3.8h and hyphenation patterns for english, usenglishmax, dumylang, noh yphenation, loaded. (/usr/share/texmf-texlive/tex/latex/base/article.cls Document Class: article 2005/09/16 v1.4f Standard LaTeX document class (/usr/share/texmf-texlive/tex/latex/base/size10.clo)) (/usr/share/texmf-texlive/tex/latex/type1cm/type1cm.sty) (/usr/share/texmf-texlive/tex/latex/psnfss/helvet.sty (/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)) (/usr/share/texmf-texlive/tex/latex/psnfss/courier.sty) (/usr/share/texmf-texlive/tex/latex/base/textcomp.sty (/usr/share/texmf-texlive/tex/latex/base/ts1enc.def)) (/usr/share/texmf-texlive/tex/latex/amsmath/amsmath.sty For additional information on amsmath, use the `?' option. (/usr/share/texmf-texlive/tex/latex/amsmath/amstext.sty (/usr/share/texmf-texlive/tex/latex/amsmath/amsgen.sty)) (/usr/share/texmf-texlive/tex/latex/amsmath/amsbsy.sty) (/usr/share/texmf-texlive/tex/latex/amsmath/amsopn.sty)) (/usr/share/texmf-texlive/tex/latex/geometry/geometry.sty Package geometry Warning: Over-specification in `h'-direction. `width' (614.295pt) is ignored. Package geometry Warning: Over-specification in `v'-direction. `height' (794.96999pt) is ignored. ) (/usr/share/texmf-texlive/tex/latex/psfrag/psfrag.sty (/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty (/usr/share/texmf-texlive/tex/latex/graphics/trig.sty) (/etc/texmf/tex/latex/config/graphics.cfg) (/usr/share/texmf-texlive/tex/latex/graphics/dvips.def))) (/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty) (/usr/share/texmf-texlive/tex/latex/graphics/color.sty (/etc/texmf/tex/latex/config/color.cfg) (/usr/share/texmf-texlive/tex/latex/graphics/dvipsnam.def)) (./8c18ecc500de49027f0ed1df1bec10b8.aux) (/usr/share/texmf-texlive/tex/latex/base/ts1cmr.fd) (/usr/share/texmf-texlive/tex/latex/psnfss/ot1pnc.fd) 8c18ecc500de49027f0ed1df1bec10b8.eps (/usr/share/texmf-texlive/tex/latex/psnfss/ot1phv.fd) ! Missing \endgroup inserted. inserted text \endgroup l.32 ...e=0]{8c18ecc500de49027f0ed1df1bec10b8.eps} ! Missing } inserted. inserted text } l.32 ...e=0]{8c18ecc500de49027f0ed1df1bec10b8.eps} ! Missing \endgroup inserted.
Re: [Matplotlib-users] problem with dynamic subplots and wx
On Apr 23, 2008, at Apr 23:6:56 PM, Brian Blais wrote: On Apr 23, 2008, at Apr 23:4:33 PM, Brian Blais wrote: I just upgraded a number of things on my Mac OS X (Tiger) machine, including to the latest version of wx and matplotlib. I found that there is a bug in the display of dynamic plots with subplots. If I change the subplot line in the examples/ dynamic_demo_wx.py to: a = self.fig.add_subplot(221) instead of a = self.fig.add_subplot(111) the plot never shows. In the quest to discover the problem, I found that the problem exists in svn (version .98pre) but not in .91.2. Both with version wx-2.8.7.1. bb -- Brian Blais [EMAIL PROTECTED] http://web.bryant.edu/~bblais - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] How do you static link to freetype when building eggs?
I've had an ongoing problem building eggs of matplotlib that are statically linked to freetype. I thought I had it nailed, but evidently I do not. Here is my script: export CFLAGS=-arch i386 -I/Developer/src/libpng -I/Developer/src/freetype/include export LDFLAGS=-arch i386 -L/Developer/src/libpng -L/Developer/src/freetype rm -rf build python setupegg.py bdist_egg The build of freetype in /Developer/src/freetype does not even have dynamic libs built. The basedir dict in setupext.py contains the following entry for OSX: 'darwin' : [] However, when the resulting egg is installed by users, they still get the following error: ImportError: dlopen(/Library/Python/2.5/site-packages/matplotlib- 0.98pre-py2.5-macosx-10.5-i386.egg/matplotlib/ft2font.so, 2): Library not loaded: /usr/local/lib/libfreetype.6.dylib Referenced from: /Library/Python/2.5/site-packages/matplotlib-0.98pre-py2.5-macosx-10.5- i386.egg/matplotlib/ft2font.so Reason: image not found I thought I had my bases covered -- if anyone has some insight here, please let me know. maptlotlib is the only missing piece of the superpack of modules that I distribute for OSX. - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] problem with dynamic subplots and wx
I'm using SVN matplotlib and wxPython 2.8.7.1, and I'm not running into the problem. Though I may be interpreting your problem incorrectly. I've attached a screen capture of the window that opens up when I run your program. Josh On Wed, Apr 23, 2008 at 5:33 PM, Brian Blais [EMAIL PROTECTED] wrote: On Apr 23, 2008, at Apr 23:6:56 PM, Brian Blais wrote: On Apr 23, 2008, at Apr 23:4:33 PM, Brian Blais wrote: I just upgraded a number of things on my Mac OS X (Tiger) machine, including to the latest version of wx and matplotlib. I found that there is a bug in the display of dynamic plots with subplots. If I change the subplot line in the examples/dynamic_demo_wx.py to: a = self.fig.add_subplot(221) instead of a = self.fig.add_subplot(111) the plot never shows. In the quest to discover the problem, I found that the problem exists in svn (version .98pre) but not in .91.2. Both with version wx-2.8.7.1. bb -- Brian Blais [EMAIL PROTECTED] http://web.bryant.edu/~bblais - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users attachment: 221.tiff- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] problem with dynamic subplots and wx
I should note that I'm doing this on OS X 10.5.2, but I don't imagine Tiger would have a problem Leopard doesn't have. Josh On Wed, Apr 23, 2008 at 6:16 PM, Joshua Lippai [EMAIL PROTECTED] wrote: I'm using SVN matplotlib and wxPython 2.8.7.1, and I'm not running into the problem. Though I may be interpreting your problem incorrectly. I've attached a screen capture of the window that opens up when I run your program. Josh On Wed, Apr 23, 2008 at 5:33 PM, Brian Blais [EMAIL PROTECTED] wrote: On Apr 23, 2008, at Apr 23:6:56 PM, Brian Blais wrote: On Apr 23, 2008, at Apr 23:4:33 PM, Brian Blais wrote: I just upgraded a number of things on my Mac OS X (Tiger) machine, including to the latest version of wx and matplotlib. I found that there is a bug in the display of dynamic plots with subplots. If I change the subplot line in the examples/dynamic_demo_wx.py to: a = self.fig.add_subplot(221) instead of a = self.fig.add_subplot(111) the plot never shows. In the quest to discover the problem, I found that the problem exists in svn (version .98pre) but not in .91.2. Both with version wx-2.8.7.1. bb -- Brian Blais [EMAIL PROTECTED] http://web.bryant.edu/~bblais - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] problem with dynamic subplots and wx
On Apr 23, 2008, at Apr 23:9:17 PM, Joshua Lippai wrote:I should note that I'm doing this on OS X 10.5.2, but I don't imagineTiger would have a problem Leopard doesn't have.you do indeed have the problem. If you change the subplot(211) to subplot(111) you'll see the proper plot (a sine wave). For some reason, when you try to subplot with 2 rows and 2 columns (and probably more) the line doesn't appear on the plot. what it should look like, and does with .91.2, is attached. bb-- Brian Blais[EMAIL PROTECTED]http://web.bryant.edu/~bblais - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users