[Matplotlib-users] Documentation glitch on github
Hi! I was looking through the sample doc tutorial: http://matplotlib.org/sampledoc/ and found that the link to the hard copy of the documentation is missing. Is there a more recent link? Best, William -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Entra nella mia rete su LinkedIn
LinkedIn William Ratcliff ha chiesto di aggiungerti ai suoi collegamenti su LinkedIn: -- Vorrei aggiungerti alla mia rete professionale su LinkedIn. Accetta l'invito di William Ratcliff http://www.linkedin.com/e/-b7qixr-gswk7oea-2f/_dML4GcZf3-2F5VO_wzm4ASVf0JrnPVO-ObO4eeHsZV8OPkmQwLeZN8i/blk/I3137892780_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0UdP8Ve3sPcjd9bSF4qlhiemtBbPsQejAQcz4OcPgLrCBxbOYWrSlI/EML_comm_afe/?hs=falsetok=0Wg_wQR1SsTkU1 Visualizza l'invito di William Ratcliff http://www.linkedin.com/e/-b7qixr-gswk7oea-2f/_dML4GcZf3-2F5VO_wzm4ASVf0JrnPVO-ObO4eeHsZV8OPkmQwLeZN8i/blk/I3137892780_2/39vc3wTczAUdPcNcQALqnpPbOYWrSlI/svi/?hs=falsetok=04ZxCHkESsTkU1 -- SAPEVI CHE puoi usare il profilo di LinkedIn come se fosse il tuo sito Web? Seleziona un URL di reindirizzamento a un microsito e promuovi questo indirizzo sui tuoi biglietti da visita, nella firma di posta elettronica, sul tuo sito Web, ecc. http://www.linkedin.com/e/-b7qixr-gswk7oea-2f/ewp/inv-21/?hs=falsetok=2AAzpjUy6sTkU1 -- (c) 2011, LinkedIn Corporation-- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] natgrid?
Is it just me, or are some of the headers missing in the mpl-toolkit on source-forge required to build natgrid 0.2? -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] natgrid?
building 'mpl_toolkits.natgrid._natgrid' extension c:\Program Files\pythonxy\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Isrc -Ic :\python25\include -Ic:\python25\PC -c src\natgridd.c -o build\temp.win32-2.5\Re lease\src\natgridd.o src\natgridd.c:17:26: ncarg/ngmath.h: No such file or directory src\natgridd.c: In function `c_natgridd': src\natgridd.c:25: warning: 'x_sav' might be used uninitialized in this function src\natgridd.c:25: warning: 'y_sav' might be used uninitialized in this function src\natgridd.c:25: warning: 'z_sav' might be used uninitialized in this function src\natgridd.c:26: warning: 'n_sav' might be used uninitialized in this function error: command 'gcc' failed with exit status 1 On Fri, Jul 30, 2010 at 2:27 PM, Jeff Whitaker jsw...@fastmail.fm wrote: On 7/30/10 12:21 PM, william ratcliff wrote: Is it just me, or are some of the headers missing in the mpl-toolkit on source-forge required to build natgrid 0.2? Works for me. Can you be more specific (what's the compilation error?) -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX: (303)497-6449 NOAA/OAR/PSD R/PSD1Email : jeffrey.s.whita...@noaa.gov 325 BroadwayOffice : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web: http://tinyurl.com/5telg -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Publication quality plots in papers
Have you had good luck keeping the formatting going between open office and MS word? What about equations? On Tue, Apr 27, 2010 at 12:42 PM, Gökhan Sever gokhanse...@gmail.comwrote: On Tue, Apr 27, 2010 at 11:23 AM, Konstantin Klementiev kklement...@cells.es wrote: I like to use png files at 300dpi. I'm stuck using MS Word 2007 at work, and that's what works best in my experience. If MS ever starts to support svg files. Or matplotlib starts to support emf-files... ;) BTW, why the emf format is in the list of export formats whereas it is not actually supported? Its presence there gives hope that the matplotlib developers will finally want to implement it. EMF works if you install pyemf package. It seems good on screen except that it kills the text when I import emf image into Open Office Writer, worse than on EPS :) -- Gökhan -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Publication quality plots in papers
I've started keeping papers under version control for latex. But, if I have collaborators who use word, then I just track changes. On Tue, Apr 27, 2010 at 9:13 PM, Ryan May rma...@gmail.com wrote: Yeah, I check in my LaTeX file, bibliography, and any python scripts for figures into a subversion repo. Ryan On Tue, Apr 27, 2010 at 5:32 PM, Gökhan Sever gokhanse...@gmail.com wrote: We have old-stylers as well :) http://www.foxitsoftware.com/pdf/reader/has nice annotation tools for PDF reviewing, and its very fast and it works on Linux through CrossOver (probably would work via wine as well). What type of revision tracking do you use? Treat your documents like code? Google code has in-place commenting option that makes me think that document revisioning would be easier that way (one day when I start using Latex :) ) On Tue, Apr 27, 2010 at 4:32 PM, Ryan May rma...@gmail.com wrote: My advisor just writes on a print out of the PDF. I'll make the changes in the revision tracked latex document. Ryan On Tue, Apr 27, 2010 at 4:18 PM, Gökhan Sever gokhanse...@gmail.com wrote: Hi Ryan, What is your typical reviewing process? Do you ask people to review on PDF outputs or via version controlled Latex document? OpenOffice also has a good review system where I can track my/others changes easily. On Tue, Apr 27, 2010 at 3:27 PM, Ryan May rma...@gmail.com wrote: I know this started with non-Latex, but I've found that passing around latex-generated PDFs works well to get reviews from non-Latex people. But then again, the people I work with don't rely upon MS Office's electronic editing capabilities. Ryan On Tue, Apr 27, 2010 at 12:43 PM, Gökhan Sever gokhanse...@gmail.com wrote: No, it comes with problems --especially in equation transformation. I mostly work on Linux (Fedora 12). I get MS Office 2007 installed through CrossOver, but it has glitches and doesn't look very safe to use for a big project. On Tue, Apr 27, 2010 at 12:17 PM, william ratcliff william.ratcl...@gmail.com wrote: Have you had good luck keeping the formatting going between open office and MS word? What about equations? On Tue, Apr 27, 2010 at 12:42 PM, Gökhan Sever gokhanse...@gmail.com wrote: On Tue, Apr 27, 2010 at 11:23 AM, Konstantin Klementiev kklement...@cells.es wrote: I like to use png files at 300dpi. I'm stuck using MS Word 2007 at work, and that's what works best in my experience. If MS ever starts to support svg files. Or matplotlib starts to support emf-files... ;) BTW, why the emf format is in the list of export formats whereas it is not actually supported? Its presence there gives hope that the matplotlib developers will finally want to implement it. EMF works if you install pyemf package. It seems good on screen except that it kills the text when I import emf image into Open Office Writer, worse than on EPS :) -- Gökhan -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Gökhan -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Gökhan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Gökhan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Question about mathtext
I think the actual error was: TypeError: cannot return std::string from Unicode object It was the error returned when I walked through with a debugger... On Mon, Apr 19, 2010 at 8:51 AM, Michael Droettboom md...@stsci.edu wrote: It looks like the end of the traceback -- where the actual exception is named -- is missing. Can you repost it in its entirety? Mike william ratcliff wrote: Hi! I am using matplotlib 0.99.0 under windows xp. I tried the following: ax.text(.96,.80,r'$P \perp Q$',fontsize=18,horizontalalignment='right',verticalalignment='top',transform=ax.transAxes,color='black') and get the following error: (However, in figure labels, symbols using mathtext, such as theta seem to work fine...) Thanks, William TypeError: cannot return std::string from Unicode object File C:\mytripleaxisproject\trunk\eclipse\src\utilities\bfo_film_fig2.py, line 301, in module film110() File C:\mytripleaxisproject\trunk\eclipse\src\utilities\bfo_film_fig2.py, line 157, in film110 plt.show() File C:\Python25\Lib\site-packages\matplotlib\backends\backend_qt4.py, line 63, in show manager.window.show() File C:\Python25\Lib\site-packages\matplotlib\backends\backend_qt4.py, line 168, in resizeEvent self.draw() File C:\Python25\Lib\site-packages\matplotlib\backends\backend_qt4agg.py, line 130, in draw FigureCanvasAgg.draw(self) File C:\Python25\Lib\site-packages\matplotlib\backends\backend_agg.py, line 314, in draw self.figure.draw(self.renderer) File C:\Python25\Lib\site-packages\matplotlib\artist.py, line 46, in draw_wrapper draw(artist, renderer, *kl) File C:\Python25\Lib\site-packages\matplotlib\figure.py, line 774, in draw for a in self.axes: a.draw(renderer) File C:\Python25\Lib\site-packages\matplotlib\artist.py, line 46, in draw_wrapper draw(artist, renderer, *kl) File C:\Python25\Lib\site-packages\matplotlib\axes.py, line 1721, in draw a.draw(renderer) File C:\Python25\Lib\site-packages\matplotlib\text.py, line 515, in draw bbox, info = self._get_layout(renderer) File C:\Python25\Lib\site-packages\matplotlib\text.py, line 279, in _get_layout clean_line, self._fontproperties, ismath=ismath) File C:\Python25\Lib\site-packages\matplotlib\backends\backend_agg.py, line 156, in get_text_width_height_descent self.mathtext_parser.parse(s, self.dpi, prop) File C:\Python25\Lib\site-packages\matplotlib\mathtext.py, line 2810, in parse box = self._parser.parse(s, font_output, fontsize, dpi) File C:\Python25\Lib\site-packages\matplotlib\mathtext.py, line 2259, in parse self._expression.parseString(s) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 1048, in parseString loc, tokens = self._parse( instring, 0 ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 981, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 924, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 2559, in parseImpl return self.expr._parse( instring, loc, doActions, callPreParse=False ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 981, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 924, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 2307, in parseImpl loc, exprtokens = e._parse( instring, loc, doActions ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 981, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 924, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 2672, in parseImpl loc, tokens = self.expr._parse( instring, loc, doActions, callPreParse=False ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 981, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 924, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 2307, in parseImpl loc, exprtokens = e._parse( instring, loc, doActions ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 981, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 924, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 2756, in parseImpl loc, tokens
Re: [Matplotlib-users] Question about mathtext
# before testing and False to force # correction off. None will try and # guess based on your dvipng version #text.markup : 'plain' # Affects how text, such as titles and labels, are # interpreted by default. # 'plain': As plain, unformatted text # 'tex': As TeX-like text. Text between $'s will be # formatted as a TeX math expression. # This setting has no effect when text.usetex is True. # In that case, all text will be sent to TeX for # processing. # The following settings allow you to select the fonts in math mode. # They map from a TeX font name to a fontconfig font pattern. # These settings are only used if mathtext.fontset is 'custom'. # Note that this custom mode is unsupported and may go away in the # future. #mathtext.cal : cursive #mathtext.rm : serif #mathtext.tt : monospace #mathtext.it : serif:italic #mathtext.bf : serif:bold #mathtext.sf : sans #mathtext.fontset : cm # Should be 'cm' (Computer Modern), 'stix', # 'stixsans' or 'custom' #mathtext.fallback_to_cm : True # When True, use symbols from the Computer Modern # fonts when a symbol can not be found in one of # the custom math fonts. #mathtext.default : it # The default font to use for math. # Can be any of the LaTeX font names, including # the special name regular for the same font # used in regular text. On Mon, Apr 19, 2010 at 10:41 AM, william ratcliff william.ratcl...@gmail.com wrote: Mike, The basename is: u'C:\\WINDOWS\\Fonts\\HTOWERTI.TTF' Let me try to find where my matplotlibrc file is located... Thanks, William On Mon, Apr 19, 2010 at 10:22 AM, Michael Droettboom md...@stsci.eduwrote: One might see that error if the path to the font being used contains non-ascii characters (the basename variable in the last frame of the stack in the stacktrace). Is that possible? We may need to implement the same workaround we use for image files for loading fonts (which is to open the file with Python and pass a file handle to C++ rather than passing a string that may contain Unicode, which is difficult to handle in cross-platform way from C/C++). Mike william ratcliff wrote: I think the actual error was: TypeError: cannot return std::string from Unicode object It was the error returned when I walked through with a debugger... On Mon, Apr 19, 2010 at 8:51 AM, Michael Droettboom md...@stsci.edumailto: md...@stsci.edu wrote: It looks like the end of the traceback -- where the actual exception is named -- is missing. Can you repost it in its entirety? Mike william ratcliff wrote: Hi! I am using matplotlib 0.99.0 under windows xp. I tried the following: ax.text(.96,.80,r'$P \perp Q$',fontsize=18,horizontalalignment='right',verticalalignment='top',transform=ax.transAxes,color='black') and get the following error: (However, in figure labels, symbols using mathtext, such as theta seem to work fine...) Thanks, William TypeError: cannot return std::string from Unicode object File C:\mytripleaxisproject\trunk\eclipse\src\utilities\bfo_film_fig2.py, line 301, in module film110() File C:\mytripleaxisproject\trunk\eclipse\src\utilities\bfo_film_fig2.py, line 157, in film110 plt.show() File C:\Python25\Lib\site-packages\matplotlib\backends\backend_qt4.py, line 63, in show manager.window.show() File C:\Python25\Lib\site-packages\matplotlib\backends\backend_qt4.py, line 168, in resizeEvent self.draw() File C:\Python25\Lib\site-packages\matplotlib\backends\backend_qt4agg.py, line 130, in draw FigureCanvasAgg.draw(self) File C:\Python25\Lib\site-packages\matplotlib\backends\backend_agg.py, line 314, in draw self.figure.draw(self.renderer) File C:\Python25\Lib\site-packages\matplotlib\artist.py, line 46, in draw_wrapper draw(artist, renderer, *kl) File C:\Python25\Lib\site-packages\matplotlib\figure.py, line 774, in draw for a in self.axes: a.draw(renderer) File C:\Python25\Lib\site-packages\matplotlib\artist.py, line 46, in draw_wrapper draw(artist, renderer, *kl) File C:\Python25\Lib\site-packages\matplotlib\axes.py, line 1721, in draw a.draw(renderer) File C:\Python25\Lib\site-packages\matplotlib\text.py, line 515, in draw bbox, info = self._get_layout(renderer) File C:\Python25\Lib\site-packages\matplotlib\text.py, line 279, in _get_layout clean_line, self._fontproperties, ismath=ismath) File C:\Python25\Lib\site-packages\matplotlib
Re: [Matplotlib-users] Question about mathtext
On the plus side, there is no longer an error when I apply the patch. On the downside, it generates a rather strange symbol instead of a perpendicular symbolLet me try to quickly upgrade to 0.99.1. I did that and I seem to get the same error... On Mon, Apr 19, 2010 at 10:49 AM, Michael Droettboom md...@stsci.eduwrote: Does forcibly casting the path to a string resolve the problem? i.e. applying this patch: Index: mathtext.py === --- mathtext.py (revision 8216) +++ mathtext.py (working copy) @@ -597,7 +597,7 @@ cached_font = self._fonts.get(basename) if cached_font is None: -font = FT2Font(basename) +font = FT2Font(str(basename)) cached_font = self.CachedFont(font) self._fonts[basename] = cached_font self._fonts[font.postscript_name] = cached_font Mike william ratcliff wrote: Mike, The basename is: u'C:\\WINDOWS\\Fonts\\HTOWERTI.TTF' Let me try to find where my matplotlibrc file is located... Thanks, William On Mon, Apr 19, 2010 at 10:22 AM, Michael Droettboom md...@stsci.edumailto: md...@stsci.edu wrote: One might see that error if the path to the font being used contains non-ascii characters (the basename variable in the last frame of the stack in the stacktrace). Is that possible? We may need to implement the same workaround we use for image files for loading fonts (which is to open the file with Python and pass a file handle to C++ rather than passing a string that may contain Unicode, which is difficult to handle in cross-platform way from C/C++). Mike william ratcliff wrote: I think the actual error was: TypeError: cannot return std::string from Unicode object It was the error returned when I walked through with a debugger... On Mon, Apr 19, 2010 at 8:51 AM, Michael Droettboom md...@stsci.edu mailto:md...@stsci.edu mailto:md...@stsci.edu mailto:md...@stsci.edu wrote: It looks like the end of the traceback -- where the actual exception is named -- is missing. Can you repost it in its entirety? Mike william ratcliff wrote: Hi! I am using matplotlib 0.99.0 under windows xp. I tried the following: ax.text(.96,.80,r'$P \perp Q$',fontsize=18,horizontalalignment='right',verticalalignment='top',transform=ax.transAxes,color='black') and get the following error: (However, in figure labels, symbols using mathtext, such as theta seem to work fine...) Thanks, William TypeError: cannot return std::string from Unicode object File C:\mytripleaxisproject\trunk\eclipse\src\utilities\bfo_film_fig2.py, line 301, in module film110() File C:\mytripleaxisproject\trunk\eclipse\src\utilities\bfo_film_fig2.py, line 157, in film110 plt.show() File C:\Python25\Lib\site-packages\matplotlib\backends\backend_qt4.py, line 63, in show manager.window.show() File C:\Python25\Lib\site-packages\matplotlib\backends\backend_qt4.py, line 168, in resizeEvent self.draw() File C:\Python25\Lib\site-packages\matplotlib\backends\backend_qt4agg.py, line 130, in draw FigureCanvasAgg.draw(self) File C:\Python25\Lib\site-packages\matplotlib\backends\backend_agg.py, line 314, in draw self.figure.draw(self.renderer) File C:\Python25\Lib\site-packages\matplotlib\artist.py, line 46, in draw_wrapper draw(artist, renderer, *kl) File C:\Python25\Lib\site-packages\matplotlib\figure.py, line 774, in draw for a in self.axes: a.draw(renderer) File C:\Python25\Lib\site-packages\matplotlib\artist.py, line 46, in draw_wrapper draw(artist, renderer, *kl) File C:\Python25\Lib\site-packages\matplotlib\axes.py, line 1721, in draw a.draw(renderer) File C:\Python25\Lib\site-packages\matplotlib\text.py, line 515, in draw bbox, info = self._get_layout(renderer) File C:\Python25\Lib\site-packages\matplotlib\text.py, line 279, in _get_layout clean_line, self._fontproperties, ismath=ismath) File C:\Python25\Lib\site-packages\matplotlib\backends\backend_agg.py, line 156, in get_text_width_height_descent self.mathtext_parser.parse(s, self.dpi, prop) File
[Matplotlib-users] Question about mathtext
Hi! I am using matplotlib 0.99.0 under windows xp. I tried the following: ax.text(.96,.80,r'$P \perp Q$',fontsize=18,horizontalalignment='right',verticalalignment='top',transform=ax.transAxes,color='black') and get the following error: (However, in figure labels, symbols using mathtext, such as theta seem to work fine...) Thanks, William TypeError: cannot return std::string from Unicode object File C:\mytripleaxisproject\trunk\eclipse\src\utilities\bfo_film_fig2.py, line 301, in module film110() File C:\mytripleaxisproject\trunk\eclipse\src\utilities\bfo_film_fig2.py, line 157, in film110 plt.show() File C:\Python25\Lib\site-packages\matplotlib\backends\backend_qt4.py, line 63, in show manager.window.show() File C:\Python25\Lib\site-packages\matplotlib\backends\backend_qt4.py, line 168, in resizeEvent self.draw() File C:\Python25\Lib\site-packages\matplotlib\backends\backend_qt4agg.py, line 130, in draw FigureCanvasAgg.draw(self) File C:\Python25\Lib\site-packages\matplotlib\backends\backend_agg.py, line 314, in draw self.figure.draw(self.renderer) File C:\Python25\Lib\site-packages\matplotlib\artist.py, line 46, in draw_wrapper draw(artist, renderer, *kl) File C:\Python25\Lib\site-packages\matplotlib\figure.py, line 774, in draw for a in self.axes: a.draw(renderer) File C:\Python25\Lib\site-packages\matplotlib\artist.py, line 46, in draw_wrapper draw(artist, renderer, *kl) File C:\Python25\Lib\site-packages\matplotlib\axes.py, line 1721, in draw a.draw(renderer) File C:\Python25\Lib\site-packages\matplotlib\text.py, line 515, in draw bbox, info = self._get_layout(renderer) File C:\Python25\Lib\site-packages\matplotlib\text.py, line 279, in _get_layout clean_line, self._fontproperties, ismath=ismath) File C:\Python25\Lib\site-packages\matplotlib\backends\backend_agg.py, line 156, in get_text_width_height_descent self.mathtext_parser.parse(s, self.dpi, prop) File C:\Python25\Lib\site-packages\matplotlib\mathtext.py, line 2810, in parse box = self._parser.parse(s, font_output, fontsize, dpi) File C:\Python25\Lib\site-packages\matplotlib\mathtext.py, line 2259, in parse self._expression.parseString(s) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 1048, in parseString loc, tokens = self._parse( instring, 0 ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 981, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 924, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 2559, in parseImpl return self.expr._parse( instring, loc, doActions, callPreParse=False ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 981, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 924, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 2307, in parseImpl loc, exprtokens = e._parse( instring, loc, doActions ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 981, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 924, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 2672, in parseImpl loc, tokens = self.expr._parse( instring, loc, doActions, callPreParse=False ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 981, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 924, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 2307, in parseImpl loc, exprtokens = e._parse( instring, loc, doActions ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 981, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 924, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 2756, in parseImpl loc, tokens = self.expr._parse( instring, loc, doActions, callPreParse=False ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 981, in _parseCache value = self._parseNoCache( instring, loc, doActions, callPreParse ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 924, in _parseNoCache loc,tokens = self.parseImpl( instring, preloc, doActions ) File C:\Python25\Lib\site-packages\matplotlib\pyparsing.py, line 2714, in parseImpl loc, tmptokens =
[Matplotlib-users] simple colorbar question
I have two quick questions about colorbars in matplotlib. The first is related to the size of the colorbar. I would like to have square axes for a plot, so I use: ax=fig.add_subplot(1,2,1) pc=ax.pcolor(X,Z,P2) ax.set_aspect(1./ax.get_data_ratio()) cb=pylab.colorbar(pc,orientation='vertical') However, here I find that the colorbar is as long as the original image rather than the scaled image. Is there a good way around this? pylab.axis('equal') and pylab.axis('scaled') have not helped. The second question is related to the choice of tickmarks for the colorbar. If I would like to have only say 4 ticks on colorbar, I tried: cb.ax.xaxis.set_major_locator(MaxNLocator(4)), however, the range for the colorbar is now incorrect. Suggestions? I am using version 0.99.0 Thanks, William -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] axes grid toolkit
Hi, I think I'm missing something obvious. I'd like to install the axes_grid toolkit to work on some inset graphs. I can't seem to find it on the trunk of svn. Where is it living these days? Is there a version that would be compatible with .99.0? Thanks, William -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] download
I saw this for windows when I was downloading .99. I just checked again in Vista--I believe it did the same thing in XP Cheers, William On Thu, Sep 3, 2009 at 9:16 PM, John Hunter jdh2...@gmail.com wrote: On Thu, Sep 3, 2009 at 8:04 PM, Alan G Isaacalan.is...@gmail.com wrote: The default download from the Matplotlib page link to http://sourceforge.net/projects/matplotlib/ which once again highlights basemap. (I think this was fixed at one point.) I'm not seeng this, nor am I seeing basemap settings in the File Manager which would trigger this. Of course, the default download is platform specific, which may be why I am not seeing this, so please give us as much info as possible about your platform (mainly the OS) When I click on the green download button at http://sourceforge.net/projects/matplotlib using mac OSX 10.5, I get redirected to the mpl 0.99 OSX download:: https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99/matplotlib-0.99.0-py2.5-macosx10.5.dmg/download JDH -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] download
I should mention that I tested 32 bit On Thu, Sep 3, 2009 at 11:59 PM, Alan G Isaac alan.is...@gmail.com wrote: John Hunter wrote: I'm not seeng this, nor am I seeing basemap settings in the File Manager which would trigger this. Of course, the default download is platform specific, which may be why I am not seeing this, so please give us as much info as possible about your platform (mainly the OS) When I click on the green download button at http://sourceforge.net/projects/matplotlib using mac OSX 10.5, I get redirected to the mpl 0.99 OSX download: Windows Vista 64bit. I see http://sourceforge.net/projects/matplotlib/files/matplotlib-toolkits/basemap-0.99.4/basemap-0.99.4.win32-py2.6.exe/download Alan Isaac -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Build issue under windows
I have recently been trying to build matplotlib from source under Vista using mingw32. I have downloaded the win32static library from the matplotlib page. Here is the error: writing build\temp.win32-2.5\Release\src\ft2font.def c:\Program Files\pythonxy\mingw\bin\g++.exe -mno-cygwin -mdll -static --entry _dllm...@12 --output-lib build\temp.win32-2.5\Release\src\libft2font.a --def build\temp.win32-2.5\Release\src\ft2font.def -s build\temp.win32-2.5\Release\src\ft2font.o build\temp.win32-2.5\Release\src\mplutils.o build\temp.win32-2.5\Release\cxx\cxxsupport.o build\temp.win32-2.5\Release\cxx\cxx_extensions.o build\temp.win32-2.5\Release\cxx\indirectpythoninterface.o build\temp.win32-2.5\Release\cxx\cxxextensions.o -Lwin32_static\lib -Lc:\python25\libs -Lc:\python25\PCBuild -lfreetype -lz -lpython25 -lmsvcr71 -o build\lib.win32-2.5\matplotlib\ft2font.pyd g++: build\temp.win32-2.5\Release\src\libft2font.a: No such file or directory error: command 'g++' failed with exit status 1 It would seem that somehow it is attempting to link with libft2font.a instead of creating it. Any ideas? Thanks, William -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] glitch in examples of draggable rectangle
Hi! I just tried the draggable rectangle extra credit example from: http://matplotlib.sourceforge.net/users/event_handling.html and as it is, it doesn't work. In the on_press method, I had to change: x0,y0=self.rect.xy to: x0=self.rect.get_x() y0=selft.rect.get_y() which then works, but I find that despite using the blitting technique, there is a significant lag in the redraws... Thanks, William (I am using the QT4Agg backend and version 0.98.3, revision 5941) -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, Big Spaceship. http://p.sf.net/sfu/creativitycat-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] question about contours and clim
Thanks! I'll just add that if you want to use the ticker example it needs to be: .. zmin, zmax = 160, 500 locator = ticker.MaxNLocator(10) # if you want no more than 10 contours locator.create_dummy_axis() locator.set_bounds(zmin, zmax) levs = locator() On Mon, May 18, 2009 at 7:29 PM, Eric Firing efir...@hawaii.edu wrote: william ratcliff wrote: Thanks! I think that explains a lot. In the full range of my dataset, I do have some rather high values. Instead of masking them out, I was hoping that I could just set a minimum and maximum value using clim to only display values within that range--it sounds like I need to mask these values out if I want the contours to be generated automatically. What I'd really like to be able to do is set zlow and zhigh and renormalize the colorbar based on that range (for example, blue the lowest value and red the highest value) for display purposes without touching the underlying data...It might complicate the signature of contour even more, but would it be possible to define a zlow, zhigh, such that the contour levels are determined based on that zlow and zhigh instead of the actual ranges in the data? If they are undefined, the behavior would default to the actual range in the data? That way, one could further separate the display of the data from the actual data... William, Yes, it would be possible to put in zlow and zhigh kwargs--but why? Why not just generate the contours you want over the range you want, as I originally suggested? You can use linspace, or arange, or a Ticker. You *don't* need to mask out values that are out of range. You can supply a colormap that uses a color you specify for over-range and under-range values, if you like; see http://matplotlib.sourceforge.net/examples/pylab_examples/image_masked.html for an example of this (although most of the rest of the example is much more complicated than what you need for contourf.) Ticker example (untested): import matplotlib.ticker as ticker zmin, zmax = 160, 500 locator = ticker.MaxNLocator(10) # if you want no more than 10 contours locator.set_bounds(zmin, zmax) levs = locator() # ... set up x, y, z ... contourf(x, y, z, levs) There was an earlier proposal that mappables, like ContourSet, accept norm kwargs vmin and vmax to be passed on to the norm when the default norm is used. I should look at this idea again. I'm not sure offhand whether it is a good idea, or whether it would take care of what you are asking for. Eric Thanks, William On Mon, May 18, 2009 at 6:18 PM, Eric Firing efir...@hawaii.edu mailto: efir...@hawaii.edu wrote: william ratcliff wrote: Here, I've changed the number of contours to 15 and 45 respectively--and the problem still remains. Do I need to manually set the ranges of the segments on the colorbar or something? It would seem to me that somehow the new limits are not being used in determining the boundaries of which color is used for which set of values. I should also mention that I am using a masked array for z (which is what gives rise to the white square in the bottom right corner). I was not suggesting just changing the *number* of contours, I was suggesting explicitly setting the boundaries. This is almost always a better strategy; the signature in which a number of contours is specified is intended only for quick and dirty exploration (and Matlab compatibility, which led to the overly complex set of possible signatures for contour in mpl). When contour is called as you called it, it doesn't know or care anything about clim; it finds the range of your input data and linearly spreads the requested number of values over approximately that range. (Actually, it uses a ticker to do this, so contour values will fall on reasonably nice numbers.) I suspect there is an unmasked high value that is making the auto-detected range too large. What do you get from print z.min(), z.max() If you don't set the clim, it is set automatically based on the contour levels; so if you set the levels, you don't need to set the clim. Colorbar gets its information from the ContourSet object. Eric Thanks, William On Mon, May 18, 2009 at 5:16 PM, Eric Firing efir...@hawaii.edu mailto:efir...@hawaii.edu mailto:efir...@hawaii.edu mailto:efir...@hawaii.edu wrote: william ratcliff wrote: Hi! I have a question about contours and clim within matplotlib. I load in some files and do some processing and generate a contour plot using: cmap=pylab.cm.jet mycontour=pylab.contourf(x,y,z,95)#, You don't really want 95 contour levels, do you? Instead of using set_clim, set the contour levels you want, and I
Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time
I'd like to see it ; On Wed, May 6, 2009 at 8:57 AM, Robert Cimrman cimrm...@ntc.zcu.cz wrote: Robert Cimrman wrote: Hi Ryan, Ryan May wrote: On Thu, Apr 23, 2009 at 4:16 PM, Esmail ebo...@hotmail.com wrote: Ryan May wrote: Try this: http://matplotlib.sourceforge.net/examples/animation/simple_anim_gtk.html (If not gtk, there are other examples there.) Thanks Ryan, that'll give me some idea with regard to the animation, and real-time drawings. Any idea if it's possible to finish a Python program but still have the graph showing? FWIW, I'm doing this under Linux. You'd have to run the plotting in a separate process from the computation. subprocess would let you do that, assuming you can spin off a child task that stays alive when the parent exits. You'd also need to get the computing process to give new results to the child plot, maybe using a pipe (which I think subprocess can handle as well.) This is exactly what I have tried/described in [1], using the multiprocessing module. It sort of works, but I have that hanging problem at the end - maybe somebody jumps in and helps this time :) r. [1] http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg10873.html Just for the record: Ryan May's example in this thread, that uses pipes, inspired me to try pipes as well, instead of queues (multiprocessing.Pipe instead of Queue) and the hanging problem, i.e. the problem that Ctrl-C interrupted the program, but it had to be killed to stop, disappeared. I can fix the script that I sent in message [1] and provide it, if there is interest. (Currently I have fixed only the version that is within sfepy). thanks! r. [1] [Matplotlib-users] plotting in a separate process, 31.03.2009 -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Quick question about annotate
Hi! Quick question about pylab.annotate: Is it supposed to take keyword args such as fontsize? Thanks, William -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Unable to compile matplotlib 0.91.2 on windows
Have the static sources been updated (freetype, etc.) for mingw? Cheers, William On Jan 8, 2008 9:48 PM, Charlie Moad [EMAIL PROTECTED] wrote: Just a guess. Did you download the visual studio static libraries instead of the mingw ones? Those linking symbols listed lend me to think this. The visual studio ones end in _vs.tar.gz. You want this: http://matplotlib.sourceforge.net/win32_static.tar.gz - Charlie On Jan 8, 2008 6:17 PM, Francesco Pretto [EMAIL PROTECTED] wrote: Hi, i'm a newcomer: greetings to all! I'm trying to compile matplotlib on windows platform using mingw toolchains (I'm going to play a little with the code). I think to have all dependencies, as specified in setupext.py (downloaded the static header+libs package). Unfortunately, linking is not working. I'm using latest stable version of mingw, 5.1.3. Follows the output; I trimmed it a little, hopefully only reduntant parts, but if you prefer here is the full output (without automatic mail client line wraps...): http://bproofs.homeunix.org/build23.out If you need more information on my setup, please ask me. Thanks for any help! Francesco Pretto BUILDING MATPLOTLIB matplotlib: 0.91.2 python: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] platform: win32 Windows version: (5, 1, 2600, 2, 'Service Pack 2') REQUIRED DEPENDENCIES numpy: 1.0.4 freetype2: found, but unknown version (no pkg-config) OPTIONAL BACKEND DEPENDENCIES libpng: found, but unknown version (no pkg-config) Gtk+: gtk+: 2.10.11, glib: 2.12.11, pygtk: 2.10.6, pygobject: 2.12.3 Qt: no Qt4: no Cairo: 1.2.6 OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: matplotlib will provide pytz: matplotlib will provide OPTIONAL USETEX DEPENDENCIES dvipng: batch. ghostscript: gswin32c non Š riconosciuto come comando interno o esterno, un programma eseguibile o un file batch. 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 running build_py creating build creating build\lib.win32-2.5 copying lib\pylab.py - build\lib.win32-2.5 copying lib\configobj.py - build\lib.win32-2.5 creating build\lib.win32-2.5\matplotlib copying lib\matplotlib\afm.py - build\lib.win32-2.5\matplotlib copying lib\matplotlib\agg.py - build\lib.win32-2.5\matplotlib copying lib\matplotlib\art3d.py - build\lib.win32-2.5\matplotlib copying lib\matplotlib\artist.py - build\lib.win32-2.5\matplotlib copying lib\matplotlib\axes.py - build\lib.win32-2.5\matplotlib copying lib\matplotlib\axes3d.py - build\lib.win32-2.5\matplotlib [...] copying lib\pytz\zoneinfo\US\Pacific-New - build\lib.win32- 2.5\pytz\zoneinfo\US copying lib\pytz\zoneinfo\US\Samoa - build\lib.win32- 2.5\pytz\zoneinfo\US copying lib\dateutil\zoneinfo\zoneinfo-2007f.tar.gz - build\lib.win32-2.5\dateutil\zoneinfo running build_ext building 'matplotlib.ft2font' extension C compiler: gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes creating build\temp.win32-2.5 creating build\temp.win32-2.5\Release creating build\temp.win32-2.5\Release\src creating build\temp.win32-2.5\Release\cxx compile options: '-Iwin32_static\include -I. -Iwin32_static\include\freetype2 -I.\freetype2 -Ic:\python25\include -Ic:\python25\PC -c' gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes -Iwin32_static\include -I. -Iwin32_static\include\freetype2 -I.\freetype2 -Ic:\python25\include -Ic:\python25\PC -c CXX\cxxextensions.c -o build\temp.win32-2.5\Release\cxx\cxxextensions.o Found executable c:\mingw\bin\gcc.exe gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes -Iwin32_static\include -I. -Iwin32_static\include\freetype2 -I.\freetype2 -Ic:\python25\include -Ic:\python25\PC -c CXX\IndirectPythonInterface.cxx -o build\temp.win32-2.5\Release\cxx\indirectpythoninterface.o gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes -Iwin32_static\include -I. -Iwin32_static\include\freetype2 -I.\freetype2 -Ic:\python25\include -Ic:\python25\PC -c src/mplutils.cpp -o build\temp.win32-2.5\Release\src\mplutils.o gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes -Iwin32_static\include -I. -Iwin32_static\include\freetype2 -I.\freetype2 -Ic:\python25\include -Ic:\python25\PC -c CXX\cxx_extensions.cxx -o
Re: [Matplotlib-users] power law fitting of data
Is there a new version of this which uses numpy instead of Numeric? I found the old Numeric version to work very well. cheers, William On Dec 26, 2007 12:58 PM, Jessica Lu [EMAIL PROTECTED] wrote: Hi Johann, I would recommend using the python mpfit module: http://cars9.uchicago.edu/software/python/mpfit.html Cheers, Jessica On Dec 22, 2007, at 8:57 PM, Johann Cohen-Tanugi wrote: hi jessica, This FittingData tutorial is very nice. Could you illustrate how to fix/thaw parameters? I did not find any such attribute and when I try some kludges they fail with a msg saying type 'exceptions.ValueError': shape mismatch: objects cannot be broadcast to a single shape thanks, Johann -- --- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Fwd: problems with eps files and pylab
-- Forwarded message -- From: william ratcliff [EMAIL PROTECTED] Date: Nov 6, 2007 8:27 AM Subject: Re: [Matplotlib-users] problems with eps files and pylab To: Darren Dale [EMAIL PROTECTED] Thanks--before your mail, I hadn't thought to check other viewers to see if it was viewer artifact and had assumed that the problem was with the output. Cheers, William On Nov 6, 2007 7:11 AM, Darren Dale [EMAIL PROTECTED] wrote: On Monday 05 November 2007 11:34:09 pm you wrote: Here is how it renders in windows XP--you can notice the grid and that the angstrom symbol does not render correctly. This is using gsview32, version 4.8 with ghostscript 8.5.4. However, after your email, I tried looking at it in ghostview 1.5 on a silicon graphics machine and found that the image rendered nicely, without the gridding, but that the angstrom symbol was still incorrect. Evince under linux is rather slow on my linux box, but seems to run into similar problems as I see under xp. What are you using for viewing? I think these are artifacts introduced by the viewer. I don't see them with kghostview, but I do with ggv. I have ghostscript-8.60 on my machine. I wonder if you get the same effect if you dont pass a dpi kwarg. I'm sorry, I dont think there is anything mpl can do about the limitations of external postscript renderers. Darren On Nov 5, 2007 7:55 PM, Darren Dale [EMAIL PROTECTED] wrote: I don't know what you mean. Your ps and png look the same on my machine. Maybe you can post a screenshot of your rendered postscript file. What version of ghostscript are you using? On Monday 05 November 2007 6:49:17 pm you wrote: ok, so, the file I generated is .ps, so why is the gridding occuring? Thanks, William On Nov 5, 2007 6:25 PM, Darren Dale [EMAIL PROTECTED] wrote: On Monday 05 November 2007 5:25:48 pm william ratcliff wrote: ftp://ftp.ncnr.nist.gov/pub fig3b.ps Is what I generated, using savefig. Does this generate postscript, or eps output? If I changed the extension in savefig to, .eps would it generate an eps file? .ps is postscript, .eps is encapsulated postscript. Yes, you need to specify .eps if you want an eps file. On Nov 5, 2007 4:31 PM, Darren Dale [EMAIL PROTECTED] wrote: On Monday 05 November 2007 3:48:11 pm william ratcliff wrote: Hi! I hope I have what is a simple question: I recently created a figure using pylab and saved it using: pylab.savefig(r'c:\fig3b.pdf',dpi=150) and it worked great. I made the same figure with a .png ending and it also worked well. However, when I tried to make an eps file for use with latex and publishing, I found: using gsview: DSC Error at line 527 %%Page: 11 This %%Page:line occured in the trailer, which is not legal. EPS files should be encapsulated in %%BeginDocument/ %%EndDocument It is possible that an EPS file was incorrectly encapsulated and that we have been cofused by the %%Trailer in an EPS file If I ignore all DSC, then I see a figure with noticeable gridding across it. However, if I use distiller to convert it to a PDF file, it appears fine. Any ideas? Thanks, William (the files are rather large, but are available at: ftp://ftp.ncnr.nist.gov/pub/ as fig3b.ps, fig3b.pdf, fig3b.png) Where is the eps file? - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Darren S. Dale, Ph.D. [EMAIL PROTECTED] -- Darren S. Dale, Ph.D. [EMAIL PROTECTED] -- Darren S. Dale, Ph.D. [EMAIL PROTECTED] - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] problems with eps files and pylab
Hi! I hope I have what is a simple question: I recently created a figure using pylab and saved it using: pylab.savefig(r'c:\fig3b.pdf',dpi=150) and it worked great. I made the same figure with a .png ending and it also worked well. However, when I tried to make an eps file for use with latex and publishing, I found: using gsview: DSC Error at line 527 %%Page: 11 This %%Page:line occured in the trailer, which is not legal. EPS files should be encapsulated in %%BeginDocument/ %%EndDocument It is possible that an EPS file was incorrectly encapsulated and that we have been cofused by the %%Trailer in an EPS file If I ignore all DSC, then I see a figure with noticeable gridding across it. However, if I use distiller to convert it to a PDF file, it appears fine. Any ideas? Thanks, William (the files are rather large, but are available at: ftp://ftp.ncnr.nist.gov/pub/ as fig3b.ps, fig3b.pdf, fig3b.png) - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] problems with eps files and pylab
ftp://ftp.ncnr.nist.gov/pub fig3b.ps Is what I generated, using savefig. Does this generate postscript, or eps output? If I changed the extension in savefig to, .eps would it generate an eps file? Thanks, William On Nov 5, 2007 4:31 PM, Darren Dale [EMAIL PROTECTED] wrote: On Monday 05 November 2007 3:48:11 pm william ratcliff wrote: Hi! I hope I have what is a simple question: I recently created a figure using pylab and saved it using: pylab.savefig(r'c:\fig3b.pdf',dpi=150) and it worked great. I made the same figure with a .png ending and it also worked well. However, when I tried to make an eps file for use with latex and publishing, I found: using gsview: DSC Error at line 527 %%Page: 11 This %%Page:line occured in the trailer, which is not legal. EPS files should be encapsulated in %%BeginDocument/ %%EndDocument It is possible that an EPS file was incorrectly encapsulated and that we have been cofused by the %%Trailer in an EPS file If I ignore all DSC, then I see a figure with noticeable gridding across it. However, if I use distiller to convert it to a PDF file, it appears fine. Any ideas? Thanks, William (the files are rather large, but are available at: ftp://ftp.ncnr.nist.gov/pub/ as fig3b.ps, fig3b.pdf, fig3b.png) Where is the eps file? - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] 3D plotting?
Is there a way to choose the color map for doing scatter plots using Axes3D? In the test_scatter() example in the class, there is a line something like: ax.scatter3D(xs,ys,zs, c='r') I would like to plot points based on 3 dimensional coordinates specified by xs,ys, zs, which works great. However, I would like to color the points with a third array, for example, cs which would either specify an index in a color map, or even just an intensity of a given color. Is this possible within matplotlib? Thanks, William - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] question about building from source on windows
The build would be nice given the added features in interactivity in matplotlib now. Would it be difficult to make a Windows XP build as well? My current build seems to work--but others might also want one with the latest features. Thanks, William On 8/6/07, Charlie Moad [EMAIL PROTECTED] wrote: I got a successful build using VS2003 on Vista. Here is the env dump: BUILDING MATPLOTLIB matplotlib: 0.90.1 python: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] platform: win32 Windows version: (6, 0, 6000, 2, '') REQUIRED DEPENDENCIES numpy: 1.0.3 freetype2: found, but unknown version (no pkg-config) OPTIONAL DEPENDENCIES Gtk+: gtk+: 2.10.11, glib: 2.12.11, pygtk: 2.10.4, pygobject: 2.12.3 Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 wxPython: no * wxPython not found Qt: no Qt4: no Cairo: 1.2.6 libpng: found, but unknown version (no pkg-config) [Edit setup.cfg to suppress the above messages] And here is the patch to make it work: Index: C:/workspace/matplotlib/setupext.py === --- C:/workspace/matplotlib/setupext.py (revision 3677) +++ C:/workspace/matplotlib/setupext.py (working copy) @@ -676,10 +676,10 @@ if sys.platform=='win32': major, minor1, minor2, s, tmp = sys.version_info if major==2 and minor1 in [3, 4, 5]: -module.include_dirs.extend(['win32_static/include/tcl84']) +module.include_dirs.extend(['win32_static/include/tcl8.4']) module.libraries.extend(['tk84', 'tcl84']) elif major==2 and minor1==2: -module.include_dirs.extend(['win32_static/include/tcl83']) +module.include_dirs.extend(['win32_static/include/tcl8.3']) module.libraries.extend(['tk83', 'tcl83']) else: raise RuntimeError('No tk/win32 support for this python version yet') Index: C:/workspace/matplotlib/ttconv/ttutil.cpp === --- C:/workspace/matplotlib/ttconv/ttutil.cpp (revision 3677) +++ C:/workspace/matplotlib/ttconv/ttutil.cpp (working copy) @@ -32,10 +32,10 @@ va_start(arg_list, format); char buffer[PRINTF_BUFFER_SIZE]; - int size = vsnprintf(buffer, PRINTF_BUFFER_SIZE, format, arg_list); + int size = _vsnprintf(buffer, PRINTF_BUFFER_SIZE, format, arg_list); if (size = PRINTF_BUFFER_SIZE) { char* buffer2 = (char*)malloc(size); -vsnprintf(buffer2, size, format, arg_list); +_vsnprintf(buffer2, size, format, arg_list); free(buffer2); } else { this-write(buffer); I don't have time to add the proper #ifdef to the cpp file at this moment. I can't remember to proper check off the top of my head. I'll commit the fix to the setupext.py typo. Did someone want the build? If so, e-mail me and I'll post it somewhere. - Charlie - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] question about building from source on windows
I was using version 3673 of svn (matplotlib) when it worked. I had a clean build directory (I usually kill it before trying to build a new version, along with whatever is in lib/site-packages). I'm not sure of the exact version I was using when it was dying (I want to say somewhere around 3660-69, but I tried a lot last week without success). Cheers, William On 8/6/07, Michael Droettboom [EMAIL PROTECTED] wrote: william ratcliff wrote: No, with whatever is in the current version of svn, it now works on the intel quad as well. Thanks! That's great news! While it's great to hear that it's working, it would be even better to track down the cause of the failure, if possible. Do you mean the current version of SVN of numpy or matplotlib? It doesn't like there were any commits to matplotlib over the weekend. Do you happen to know what SVN revision was breaking before you updated and everything worked? When you finally updated and things worked, did you clean the build directory by any chance? Python distutils doesn't always track dependencies correctly and rebuild enough stuff, which can sometimes be the cause of problems. I just tried following Michael's build instructions (incidentally, could his last additions to setup.py be checked in to svn, along with a profile25.bat file?) I was wary of committing that change until it had been reviewed by someone else with more mingw32 experience. It worked for me, but it has the feel of something slightly hackish... For review, in case some other Windows guys are listening, I adding the following right before the final distrib = setup(... in setup.py: from setupext import get_win32_compiler if sys.platform == 'win32' and get_win32_compiler() == 'mingw32': for module in ext_modules: module.libraries.append(msvcrt) As for profile25.bat, I can't find it in SVN. Maybe whoever is responsible for win32_static.tar.gz needs to do it. Not sure... Cheers, Mike profile25.bat_text Description: Binary data - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] question about building from source on windows
One more datapoint--I am becoming suspicious that this could be an arch problem. A colleague was able to build from source under cygwin on his rather old laptop. However, another colleague and myself have rather new computers and both failed (with different errors in the verbose mode). I just tried following Michael's build instructions (incidentally, could his last additions to setup.py be checked in to svn, along with a profile25.batfile?) on an old windows box that we have lying around here and it also worked well and I was able to run the embedding_in_wx4.py example without any problems. The computer that I've been having all of the problems on also was relatively clean--so, there are only two things I can think of--either some bizarre clash with the version of numpy that I built from source off of svn (which passed all of its tests, so I doubt it), or an arch dependence. I have an intel quad and my colleage has a duo, so perhaps there's a problem with computers with multiple processors? I will check the numpy issue later today. Thanks again, William On 8/2/07, william ratcliff [EMAIL PROTECTED] wrote: Oh--sorry I didn't read carefully--I don't need to install from source if there is a binary of the current svn version. Thanks!! William On 8/2/07, william ratcliff [EMAIL PROTECTED] wrote: One of my colleagues, Paul Kienzle has made a number of additions to matplotlib for interacting with artists. I need to use some of those additions--which are not included in the stable release. Paul's on vacation, so I am trying to start from source. Thanks, William On 8/2/07, John Hunter [EMAIL PROTECTED] wrote: On 8/2/07, william ratcliff [EMAIL PROTECTED] wrote: Thanks again for all your work on this. I moved my old minGW and installed MinGW-5.1.3 , and was already running the others--except numpy, I have the latest version from svn, which I compiled and built fine after building atlas. I checked out matplotlib from svn and did the same as you --I didn't try using the importlib batch file--I have a libpython25.a--so, after changing the profile24.bat to profile25.bat with appropriate path changes and your modifications to setup.py, I built it. I then installed it--no problems yet. I then tried to use it with embedding_in_wx4.py and python crashes and burns. I find that it crashes with the same LazyValue error. Something similar happened to one of my colleagues who tried building with visual studio instead of mingw. He's given up and is now running it on his Mac. Sadly, I don't have that option. Does anyone else have any ideas? Charlie Moad does our win32 builds for releases -- Charlie if you get a minute could you see if your build pipeline is still working OK with the recent svn changes, and if so take pity on poor William and send him an installer? Or is there some reason you *need* to be building from src William? Thanks, JDH - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] question about building from source on windows
Thanks again for all your work on this. I moved my old minGW and installed MinGW-5.1.3, and was already running the others--except numpy, I have the latest version from svn, which I compiled and built fine after building atlas. I checked out matplotlib from svn and did the same as you --I didn't try using the importlib batch file--I have a libpython25.a--so, after changing the profile24.bat to profile25.bat with appropriate path changes and your modifications to setup.py, I built it. I then installed it--no problems yet. I then tried to use it with embedding_in_wx4.py and python crashes and burns. I find that it crashes with the same LazyValue error. Something similar happened to one of my colleagues who tried building with visual studio instead of mingw. He's given up and is now running it on his Mac. Sadly, I don't have that option. Does anyone else have any ideas? Thanks, William On 8/2/07, Michael Droettboom [EMAIL PROTECTED] wrote: Well, the good news is that I was able to get it to compile and run the wxPython backend on Windows. The bad news is that my symptoms are different enough from yours that I'm not sure this will help you. I started with a reasonably clean Windows XP SP2 machine with no development tools on it. I installed (using the standard binary installers) the most recent stable releases of the following: - Python 2.5.1 (python.org) - wxPython-2.8.4.0 - numpy-1.0.3 - MinGW-5.1.3 (selecting the current release option) - MSys-1.0.10 I checked out the latest matplotlib from svn (r3662). I downloaded and uncompressed win32_static from here: http://matplotlib.sourceforge.net/win32_static.tar.gz I did not do the pexports step, as I don't think MinGW requires it any longer. I updated profile24.bat to point at my new Python 2.5 (this should probably be added to win32_static when someone gets a chance). I then built and installed using: python setup.py build --compiler=mingw32 install (Note that I didn't build and use the Windows installer as the instructions suggest -- I doubt that makes a difference, though). It built fine the first time. Then I ran into problems. When importing certain extension modules (ft2font, _transforms etc.), but not others (ttconv), I got a dialog with the error message: The procedure entry point _ctype could not be located in the dynamic link library msvcr71.dll ...and then the module would fail to load. This is quite different from what William was seeing, since for him the modules were obviously loading and then failing in the initialization code. Googling tells me that this is because libstdc++ (specifically the string and iostream stuff) depends on _ctype for determining the types of various ASCII characters, which was in msvcrt.dll but was removed from msvcrt71.dll. Python2.5 is built with and therefore requires its extensions to link to msvcrt71.dll, so that's what you get by default. Fortunately, it doesn't seem to hurt to link to both. I added the following to setup.py, right before the final distrib = setup(... section: from setupext import get_win32_compiler if sys.platform == 'win32' and get_win32_compiler() == 'mingw32': for module in ext_modules: module.libraries.append(msvcrt) After this change, I was able to run embedding_in_wx4.py and get a window with a plot in it. Everything *seems* to be in order. William, I'm really curious if the above fix solves your problem. I probably shouldn't spend too much more time on this myself, as Windows isn't a very common platform for us (by that I mean my employer, STScI, not matplotlib as a whole). If I can admit selfishness, I really just wanted to make sure I hadn't hosed anything with my recent setup.py changes. I think that has been ruled out, and instead we now have what looks like a big amorphous configuration-difference problem. Cheers, Mike - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] question about building from source on windows
Oh--sorry I didn't read carefully--I don't need to install from source if there is a binary of the current svn version. Thanks!! William On 8/2/07, william ratcliff [EMAIL PROTECTED] wrote: One of my colleagues, Paul Kienzle has made a number of additions to matplotlib for interacting with artists. I need to use some of those additions--which are not included in the stable release. Paul's on vacation, so I am trying to start from source. Thanks, William On 8/2/07, John Hunter [EMAIL PROTECTED] wrote: On 8/2/07, william ratcliff [EMAIL PROTECTED] wrote: Thanks again for all your work on this. I moved my old minGW and installed MinGW-5.1.3 , and was already running the others--except numpy, I have the latest version from svn, which I compiled and built fine after building atlas. I checked out matplotlib from svn and did the same as you --I didn't try using the importlib batch file--I have a libpython25.a--so, after changing the profile24.bat to profile25.bat with appropriate path changes and your modifications to setup.py, I built it. I then installed it--no problems yet. I then tried to use it with embedding_in_wx4.py and python crashes and burns. I find that it crashes with the same LazyValue error. Something similar happened to one of my colleagues who tried building with visual studio instead of mingw. He's given up and is now running it on his Mac. Sadly, I don't have that option. Does anyone else have any ideas? Charlie Moad does our win32 builds for releases -- Charlie if you get a minute could you see if your build pipeline is still working OK with the recent svn changes, and if so take pity on poor William and send him an installer? Or is there some reason you *need* to be building from src William? Thanks, JDH - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] question about building from source on windows
I tried the new setup.py script and found: C:\matplotlib\trunk\matplotlibc:\python25\python.exe setup.py build BUILDING MATPLOTLIB matplotlib: 0.90.1 (r3634) python: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] platform: win32 Traceback (most recent call last): File setup.py, line 122, in module print_status('Windows version', sys.getwindowsversion()) File C:\matplotlib\trunk\matplotlib\setupext.py, line 119, in print_status subsequent_indent=indent) File c:\python25\lib\textwrap.py, line 315, in fill return w.fill(text) File c:\python25\lib\textwrap.py, line 287, in fill return \n.join(self.wrap(text)) File c:\python25\lib\textwrap.py, line 274, in wrap text = self._munge_whitespace(text) File c:\python25\lib\textwrap.py, line 122, in _munge_whitespace text = text.expandtabs() AttributeError: 'tuple' object has no attribute 'expandtabs' Any ideas? Thanks!!! William On 8/1/07, Michael Droettboom [EMAIL PROTECTED] wrote: william ratcliff wrote: I have a question about building from source on windows: I have installed freetype2 and libpng, for zlib, I have a collection of dlls, But, where do I place these so that matplotlib can find them (for the include files, libraries, etc. Are there any that I have to rename?)? I am using mingw for compilation and python 2.5--I have built numpy successfully from source and have installed wxpython. I have the latest version of matplotlib from the trunk of the svn repository. As of yesterday, the setup.py script should give a little more feedback about where it is looking for external dependencies. I took great care to not change any of the Windows behavior, since I didn't have a Windows box handy to test with. If you are still stuck after following the existing directions, the output of setup.py may offer some clues. Cheers, Mike - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] question about building from source on windows
Ok--that did fix the expandtabs bug! I can now see where there is a failure in the build: Found executable C:\Python24\Enthought\MingW\bin\g++.exe win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x160): undefined refer ence to `inflateInit2_' win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x1d7): undefined refer ence to `inflateEnd' win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x522): undefined refer ence to `inflateReset' win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x5e8): undefined refer ence to `inflate' collect2: ld returned 1 exit status error: Command g++ -mno-cygwin -shared build\temp.win32- 2.5\Release\src\ft2font .o build\temp.win32-2.5\Release\src\mplutils.o build\temp.win32- 2.5\Release\cxx\ cxxsupport.o build\temp.win32-2.5\Release\cxx\cxx_extensions.obuild\temp.win32- 2.5\Release\cxx\indirectpythoninterface.o build\temp.win32- 2.5\Release\cxx\cxxex tensions.o -Lwin32_static\lib -Lc:\python25\libs -Lc:\python25\PCBuild -lz -lfre etype -lpython25 -lmsvcr71 -o build\lib.win32-2.5\matplotlib\ft2font.pyd failed with exit status 1 suggestions? Thanks, William On 8/1/07, Michael Droettboom [EMAIL PROTECTED] wrote: That's my bad from my changes to setup.py yesterday. Please update from SVN and try again. Cheers, Mike william ratcliff wrote: I tried the new setup.py script and found: C:\matplotlib\trunk\matplotlibc:\python25\python.exe setup.py build BUILDING MATPLOTLIB matplotlib: 0.90.1 (r3634) python: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] platform: win32 Traceback (most recent call last): File setup.py, line 122, in module print_status('Windows version', sys.getwindowsversion()) File C:\matplotlib\trunk\matplotlib\setupext.py, line 119, in print_status subsequent_indent=indent) File c:\python25\lib\textwrap.py, line 315, in fill return w.fill(text) File c:\python25\lib\textwrap.py, line 287, in fill return \n.join( self.wrap(text)) File c:\python25\lib\textwrap.py, line 274, in wrap text = self._munge_whitespace(text) File c:\python25\lib\textwrap.py, line 122, in _munge_whitespace text = text.expandtabs() AttributeError: 'tuple' object has no attribute 'expandtabs' Any ideas? Thanks!!! William On 8/1/07, * Michael Droettboom* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: william ratcliff wrote: I have a question about building from source on windows: I have installed freetype2 and libpng, for zlib, I have a collection of dlls, But, where do I place these so that matplotlib can find them (for the include files, libraries, etc. Are there any that I have to rename?)? I am using mingw for compilation and python 2.5--I have built numpy successfully from source and have installed wxpython. I have the latest version of matplotlib from the trunk of the svn repository. As of yesterday, the setup.py script should give a little more feedback about where it is looking for external dependencies. I took great care to not change any of the Windows behavior, since I didn't have a Windows box handy to test with. If you are still stuck after following the existing directions, the output of setup.py may offer some clues. Cheers, Mike - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] question about building from source on windows
Is it possible that the freetype library in win32_static is out of date? Cheers, William On 8/1/07, william ratcliff [EMAIL PROTECTED] wrote: Ok--that did fix the expandtabs bug! I can now see where there is a failure in the build: Found executable C:\Python24\Enthought\MingW\bin\g++.exe win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x160): undefined refer ence to `inflateInit2_' win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x1d7): undefined refer ence to `inflateEnd' win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x522): undefined refer ence to `inflateReset' win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x5e8): undefined refer ence to `inflate' collect2: ld returned 1 exit status error: Command g++ -mno-cygwin -shared build\temp.win32- 2.5\Release\src\ft2font .o build\temp.win32-2.5\Release\src\mplutils.o build\temp.win32- 2.5\Release\cxx\ cxxsupport.o build\temp.win32-2.5\Release\cxx\cxx_extensions.obuild\temp.win32- 2.5\Release\cxx\indirectpythoninterface.o build\temp.win32- 2.5\Release\cxx\cxxex tensions.o -Lwin32_static\lib -Lc:\python25\libs -Lc:\python25\PCBuild -lz -lfre etype -lpython25 -lmsvcr71 -o build\lib.win32-2.5\matplotlib\ft2font.pyd failed with exit status 1 suggestions? Thanks, William On 8/1/07, Michael Droettboom [EMAIL PROTECTED] wrote: That's my bad from my changes to setup.py yesterday. Please update from SVN and try again. Cheers, Mike william ratcliff wrote: I tried the new setup.py script and found: C:\matplotlib\trunk\matplotlibc:\python25\python.exe setup.py build BUILDING MATPLOTLIB matplotlib: 0.90.1 (r3634) python: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] platform: win32 Traceback (most recent call last): File setup.py, line 122, in module print_status('Windows version', sys.getwindowsversion()) File C:\matplotlib\trunk\matplotlib\setupext.py, line 119, in print_status subsequent_indent=indent) File c:\python25\lib\textwrap.py, line 315, in fill return w.fill(text) File c:\python25\lib\textwrap.py, line 287, in fill return \n.join( self.wrap(text)) File c:\python25\lib\textwrap.py, line 274, in wrap text = self._munge_whitespace(text) File c:\python25\lib\textwrap.py, line 122, in _munge_whitespace text = text.expandtabs() AttributeError: 'tuple' object has no attribute 'expandtabs' Any ideas? Thanks!!! William On 8/1/07, * Michael Droettboom* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: william ratcliff wrote: I have a question about building from source on windows: I have installed freetype2 and libpng, for zlib, I have a collection of dlls, But, where do I place these so that matplotlib can find them (for the include files, libraries, etc. Are there any that I have to rename?)? I am using mingw for compilation and python 2.5--Ihave built numpy successfully from source and have installed wxpython. I have the latest version of matplotlib from the trunk of the svn repository. As of yesterday, the setup.py script should give a little more feedback about where it is looking for external dependencies. I took great care to not change any of the Windows behavior, since I didn't have a Windows box handy to test with. If you are still stuck after following the existing directions, the output of setup.py may offer some clues. Cheers, Mike - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] question about building from source on windows
to use pkg-config to determine the freetype dependencies where possible, but that inadvertently broke Windows.) Please 'svn up' and try again. Sorry for the inconvience. Cheers, Mike william ratcliff wrote: Is it possible that the freetype library in win32_static is out of date? Cheers, William On 8/1/07, *william ratcliff* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Ok--that did fix the expandtabs bug! I can now see where there is a failure in the build: Found executable C:\Python24\Enthought\MingW\bin\g++.exe win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x160): undefined refer ence to `inflateInit2_' win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x1d7): undefined refer ence to `inflateEnd' win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x522): undefined refer ence to `inflateReset' win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x5e8): undefined refer ence to `inflate' collect2: ld returned 1 exit status error: Command g++ -mno-cygwin -shared build\temp.win32- 2.5\Release\src\ft2font .o build\temp.win32-2.5\Release\src\mplutils.o build\temp.win32-2.5\Release\cxx\ cxxsupport.o build\temp.win32-2.5\Release\cxx\cxx_extensions.o build\temp.win32- 2.5\Release\cxx\indirectpythoninterface.o build\temp.win32-2.5\Release\cxx\cxxex tensions.o -Lwin32_static\lib -Lc:\python25\libs -Lc:\python25\PCBuild -lz -lfre etype -lpython25 -lmsvcr71 -o build\lib.win32-2.5\matplotlib\ft2font.pyd failed with exit status 1 suggestions? Thanks, William On 8/1/07, *Michael Droettboom* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: That's my bad from my changes to setup.py yesterday. Please update from SVN and try again. Cheers, Mike william ratcliff wrote: I tried the new setup.py script and found: C:\matplotlib\trunk\matplotlibc:\python25\python.exe setup.py build BUILDING MATPLOTLIB matplotlib: 0.90.1 (r3634) python: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] platform: win32 Traceback (most recent call last): File setup.py, line 122, in module print_status('Windows version', sys.getwindowsversion()) File C:\matplotlib\trunk\matplotlib\setupext.py, line 119, in print_status subsequent_indent=indent) File c:\python25\lib\textwrap.py, line 315, in fill return w.fill(text) File c:\python25\lib\textwrap.py, line 287, in fill return \n.join( self.wrap(text)) File c:\python25\lib\textwrap.py, line 274, in wrap text = self._munge_whitespace(text) File c:\python25\lib\textwrap.py, line 122, in _munge_whitespace text = text.expandtabs() AttributeError: 'tuple' object has no attribute 'expandtabs' Any ideas? Thanks!!! William On 8/1/07, * Michael Droettboom* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: william ratcliff wrote: I have a question about building from source on windows: I have installed freetype2 and libpng, for zlib, I have a collection of dlls, But, where do I place these so that matplotlib can find them (for the include files, libraries, etc. Are there any that I have to rename?)? I am using mingw for compilation and python 2.5--I have built numpy successfully from source and have installed wxpython. I have the latest version of matplotlib from the trunk of the svn repository. As of yesterday, the setup.py script should give a little more feedback about where it is looking for external dependencies. I took great care to not change any of the Windows behavior, since I didn't have a Windows box handy to test with. If you are still stuck after following the existing directions, the output of setup.py may offer some clues. Cheers, Mike
Re: [Matplotlib-users] question about building from source on windows
If I revert back to 3645, it builds and I can install it--but then I run into the original error I was having where I couldn't run the demos: C:\matplotlib\trunk\matplotlib\examplesc:\python25\python.exe wxcursor_demo.py Traceback (most recent call last): File wxcursor_demo.py, line 6, in module from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCan vas File c:\python25\Lib\site-packages\matplotlib\backends\backend_wxagg.py, lin e 24, in module from backend_agg import FigureCanvasAgg File c:\python25\Lib\site-packages\matplotlib\backends\backend_agg.py, line 86, in module from matplotlib.mathtext import math_parse_s_ft2font File c:\python25\Lib\site-packages\matplotlib\mathtext.py, line 1182, in mo dule class Vlist(List): File c:\python25\Lib\site-packages\matplotlib\mathtext.py, line 1189, in Vli st def vpack(self, h=0., m='additional', l=float('inf')): ValueError: invalid literal for float(): inf Thanks, William On 8/1/07, Michael Droettboom [EMAIL PROTECTED] wrote: william ratcliff wrote: Thanks! I think that: found, but unknown version would be a bit better. I'll fix that. So, it means that it found libpng and freetype. It says that it didn't vind wx-python--but is that only relevant for versions of wxpython below 2.8 Yes, the message should be fixed. It won't attempt to build the wxAgg extension (which isn't needed) in your case anyway. I am running C:\Python25\Lib\site-packages\wx-2.8-msw-unicode, and there is no wx-config directory associated with it. That probably just means you don't have the development headers installed, which is not necessary in this case. Also, is there a reason why the compilation is being done with the cygwin flag? It looks like it's using the -mno-cygwin flag, which is how mingw32 is normally selected. BTW, any luck when you reverted to an earlier SVN version? (3645) Cheers, Mike Thanks, William On 8/1/07, *Michael Droettboom* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: william ratcliff wrote: A bit strange: gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes -Iwin32_static\include -I. -Ic:\python25\include -Ic:\python25\PC -c src/ft2font.cpp -o build\temp.win32- 2.5\Release\src\ft2font.o g++ -mno-cygwin -shared build\temp.win32- 2.5\Release\src\ft2font.o build\temp.win32-2.5\Release\src\mplutils.o build\temp.win32-2.5\Release\cxx\cxxsupport.o build\temp.win32- 2.5\Release\cxx\cxx_extensions.o build\temp.win32-2.5\Release\cxx\indirectpythoninterface.o build\temp.win32-2.5\Release\cxx\cxxextensions.o-Lwin32_static\lib -Lc:\python25\libs -Lc:\python25\PCBuild -lfreetype -lz -lpython25 -lmsvcr71 -o build\lib.win32-2.5\matplotlib\ft2font.pyd Found executable c:\python24\enthought\mingw\bin\g++.exe build\temp.win32-2.5\Release\src\ft2font.o:ft2font.cpp: (.text+0x317): undefined reference to `_imp__FT_Done_FreeType' These _imp__ things have something to do with how mingw32 links with libraries. I'm afraid I'm getting a little out of my element there. If you want to rule out any unintentional consequences of my very recent setup.py changes (which were primarily to give more information, rather than change how things work), you can revert SVN a bit svn -r 3645 and see if things are any different. Please let me know how that goes either way. But, I noticed in the beginning: BUILDING MATPLOTLIB matplotlib: 0.90.1 (r3634) python: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] platform: win32 Windows version: (5, 1, 2600, 2, 'Service Pack 2') REQUIRED DEPENDENCIES Setting mingw32 as default compiler for nt. numpy: 1.0.4.dev3937 freetype2: unknown (no pkg-config) OPTIONAL DEPENDENCIES Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to import gtk in your build/install environment Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 wxPython: no * WXAgg's accelerator requires `wx-config'. The * `wx-config' executable could not be located in any * directory of the PATH environment variable. If you * want to build WXAgg, and wx-config is in some * other location or has some other name, set
Re: [Matplotlib-users] question about building from source on windows
Thanks! I think that: found, but unknown version would be a bit better. So, it means that it found libpng and freetype. It says that it didn't vind wx-python--but is that only relevant for versions of wxpython below 2.8 I am running C:\Python25\Lib\site-packages\wx-2.8-msw-unicode, and there is no wx-config directory associated with it. Also, is there a reason why the compilation is being done with the cygwin flag? Thanks, William On 8/1/07, Michael Droettboom [EMAIL PROTECTED] wrote: william ratcliff wrote: A bit strange: gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes -Iwin32_static\include -I. -Ic:\python25\include -Ic:\python25\PC -c src/ft2font.cpp -o build\temp.win32-2.5\Release\src\ft2font.o g++ -mno-cygwin -shared build\temp.win32- 2.5\Release\src\ft2font.o build\temp.win32-2.5\Release\src\mplutils.o build\temp.win32-2.5\Release\cxx\cxxsupport.o build\temp.win32-2.5\Release\cxx\cxx_extensions.o build\temp.win32-2.5\Release\cxx\indirectpythoninterface.o build\temp.win32-2.5\Release\cxx\cxxextensions.o -Lwin32_static\lib -Lc:\python25\libs -Lc:\python25\PCBuild -lfreetype -lz -lpython25 -lmsvcr71 -o build\lib.win32-2.5\matplotlib\ft2font.pyd Found executable c:\python24\enthought\mingw\bin\g++.exe build\temp.win32-2.5\Release\src\ft2font.o:ft2font.cpp:(.text+0x317): undefined reference to `_imp__FT_Done_FreeType' These _imp__ things have something to do with how mingw32 links with libraries. I'm afraid I'm getting a little out of my element there. If you want to rule out any unintentional consequences of my very recent setup.py changes (which were primarily to give more information, rather than change how things work), you can revert SVN a bit svn -r 3645 and see if things are any different. Please let me know how that goes either way. But, I noticed in the beginning: BUILDING MATPLOTLIB matplotlib: 0.90.1 (r3634) python: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] platform: win32 Windows version: (5, 1, 2600, 2, 'Service Pack 2') REQUIRED DEPENDENCIES Setting mingw32 as default compiler for nt. numpy: 1.0.4.dev3937 freetype2: unknown (no pkg-config) OPTIONAL DEPENDENCIES Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to import gtk in your build/install environment Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 wxPython: no * WXAgg's accelerator requires `wx-config'. The * `wx-config' executable could not be located in any * directory of the PATH environment variable. If you * want to build WXAgg, and wx-config is in some * other location or has some other name, set the * WX_CONFIG environment variable to the full path of * the executable like so: export WX_CONFIG=/usr/lib * /wxPython-2.6.1.0-gtk2-unicode/bin/wx-config Qt: no Qt4: no Cairo: no libpng: unknown (no pkg-config) [Edit setup.cfg to suppress the above messages] Does this mean that it's unable to find the win32_static directory? I have in in the matplotlibdirectory. No. The line: freetype2: unknown (no pkg-config) indicates that the freetype2 headers were found, but it couldn't determine the version through pkg-config. If it wasn't able to find it, it would hav said freetype2: no. On second glance, I admit that message might be confusing. Do you think found, but unknown version would be better? I think I'm confused on something: In the win32 directory, there are instructions for building under cygwin--but is it necessary to build, or does matplotlib just require the library files and their headers, which it should be able to find in the win32_static directory? I'll defer on that question to someone with more matplotlib + Windows experience. Cheers, Mike Cheers, William On 8/1/07, *Michael Droettboom* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: It looks like I screwed up the order of libraries between freetype2 and zlib. (It was updated to use pkg-config to determine the freetype dependencies where possible, but that inadvertently broke Windows.) Please 'svn up' and try again. Sorry for the inconvience. Cheers, Mike william ratcliff wrote: Is it possible that the freetype library in win32_static is out of date? Cheers
Re: [Matplotlib-users] question about building from source on windows
Now, it no longer gives rise to the previous error, but python crashes when I run the embedding_in_wx4.py example. William On 8/1/07, John Hunter [EMAIL PROTECTED] wrote: On 8/1/07, Michael Droettboom [EMAIL PROTECTED] wrote: c:\python25\Lib\site-packages\matplotlib\mathtext.py, line 1189, in Vli st def vpack(self, h=0., m='additional', l=float('inf')): ValueError: invalid literal for float(): inf I'm not opposed to importing mathtext on demand only, but that would be new. I see, it wasn't clear to me on my first look that the bug was triggered at module load time. I had assumed the bug was triggered by *using* mathtext. Since you seem to have found the fix (numpy.inf) I'm happy to leave it as is. JDH - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] question about building from source on windows
Yes. It crashes at the savefig line. On 8/1/07, Michael Droettboom [EMAIL PROTECTED] wrote: william ratcliff wrote: Ok--I reverted to head and it fixed the undefined references error and everything seems to build normally. Well, that's partially good news... But, if I try to run the embedding_in_wx4.py example, it crashes python 2.5.1 If I install from the .msi then things do work in python 2.5.1, so it must be something with the build. Just to clarify, you mean the 0.90.1 installer downloaded from SourceForge? I also tried to just start python from the command window, then ran: import numpy as N x=N.array([1,2,3]) from pylab import * plot(x,x) show() The plot command generates a Line2D instance, but the show() command kills python in the same way that the embedding example does. In the embedding example, I notice that the CanvasFrame is generated before the crash. Does it also crash if you use the Agg backend alone and save to an image file? import matplotlib matplotlib.use(Agg) from pylab import * plot([1,2,3]) savefig(test.png) Cheers, Mike On 8/1/07, *william ratcliff* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Let me try this. On 8/1/07, *Michael Droettboom* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm going to summarize, just to make sure I have everything straight. 1) HEAD doesn't build (you get lots of undefined reference to `_imp__FT_Done_FreeType') 2) revision 3645 (yesterday before my setup.py changes), builds, but you got the float('inf') error (which is now fixed) 3) much earlier revisions (3608) have other issues (which seem to be related to out-of-date wxPython code) I have just committed a possible fix for 1). You may want to try updating to HEAD and building that. If that doesn't work for you, I'm worried about things getting out of hand and annoying a lot of people with my (well intentioned) setup.py changes yesterday. If that's the case, I will revert my build changes until I have a chance to sit in front of a Windows box and figure out what's really going wrong. Apologies all around, Mike william ratcliff wrote: 3608 also runs into problems of linking with the freetype libraries. Some much older versions (say in the 3500s) compile, but still crash python2.5.1 with errors like: C:\matplotlib\trunk\matplotlib\examplesc:\python25\python.exe embedding_in_wx4. py embedding_in_wx4.py:24: DeprecationWarning: The wxPython compatibility package i s no longer automatically generated or actively maintained. Please switch to th e wx package as soon as possible. from wxPython.wx import * Thanks again for the help! William On 8/1/07, *John Hunter* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 8/1/07, william ratcliff [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: from matplotlib.mathtext import math_parse_s_ft2font File c:\python25\Lib\site-packages\matplotlib\mathtext.py, line 1182, in mo dule class Vlist(List): File c:\python25\Lib\site-packages\matplotlib\mathtext.py, line 1189, in Vli st def vpack(self, h=0., m='additional', l=float('inf')): ValueError: invalid literal for float(): inf It's not clear to me why you should be hitting mathtext at all, since the wxcursor_demo.py does not use it, as far as I can tell. Michael, would any of your earlier work caused him to get into mathtext inapproriately? You may need to revert a little farther, William, eg to r3608 while we get this sorted out. JDH - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Matplotlib-users mailing list Matplotlib-users
Re: [Matplotlib-users] question about building from source on windows
No, thank you for trying so hard. I just tried running setup.py with VERBOSE=True on a clean installation. when it crashes I get: LazyValue::init_type does this mean anything to anyone? William On 8/1/07, Michael Droettboom [EMAIL PROTECTED] wrote: It's probably something in C++ backend code for Agg. Maybe someone else on this list knows the last time it built and worked on Windows and can track down a change that may have broken it. It will probably take some work with a debugger to figure out where it is crashing. I'd be completely guessing at this point. If you feel adventurous and can get a C backtrace out of the crash somehow, (does gdb work with mingw?), that could be useful. Barring that, maybe one of the other Windows folk on this list has some ideas. Thanks for your considerable patience ;) Cheers, Mike william ratcliff wrote: Yes. It crashes at the savefig line. On 8/1/07, *Michael Droettboom* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: william ratcliff wrote: Ok--I reverted to head and it fixed the undefined references error and everything seems to build normally. Well, that's partially good news... But, if I try to run the embedding_in_wx4.py example, it crashes python 2.5.1 If I install from the .msi then things do work in python 2.5.1, so it must be something with the build. Just to clarify, you mean the 0.90.1 installer downloaded from SourceForge? I also tried to just start python from the command window, then ran: import numpy as N x=N.array([1,2,3]) from pylab import * plot(x,x) show() The plot command generates a Line2D instance, but the show() command kills python in the same way that the embedding example does. In the embedding example, I notice that the CanvasFrame is generated before the crash. Does it also crash if you use the Agg backend alone and save to an image file? import matplotlib matplotlib.use(Agg) from pylab import * plot([1,2,3]) savefig(test.png) Cheers, Mike On 8/1/07, *william ratcliff* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Let me try this. On 8/1/07, *Michael Droettboom* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm going to summarize, just to make sure I have everything straight. 1) HEAD doesn't build (you get lots of undefined reference to `_imp__FT_Done_FreeType') 2) revision 3645 (yesterday before my setup.py changes), builds, but you got the float('inf') error (which is now fixed) 3) much earlier revisions (3608) have other issues (which seem to be related to out-of-date wxPython code) I have just committed a possible fix for 1). You may want to try updating to HEAD and building that. If that doesn't work for you, I'm worried about things getting out of hand and annoying a lot of people with my (well intentioned) setup.py changes yesterday. If that's the case, I will revert my build changes until I have a chance to sit in front of a Windows box and figure out what's really going wrong. Apologies all around, Mike william ratcliff wrote: 3608 also runs into problems of linking with the freetype libraries. Some much older versions (say in the 3500s) compile, but still crash python2.5.1 with errors like: C:\matplotlib\trunk\matplotlib\examplesc:\python25\python.exe embedding_in_wx4. py embedding_in_wx4.py:24: DeprecationWarning: The wxPython compatibility package i s no longer automatically generated or actively maintained. Please switch to th e wx package as soon as possible. from wxPython.wx import * Thanks again for the help! William On 8/1/07, *John Hunter* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL
[Matplotlib-users] question about building from source on windows
I have a question about building from source on windows: I have installed freetype2 and libpng, for zlib, I have a collection of dlls, But, where do I place these so that matplotlib can find them (for the include files, libraries, etc. Are there any that I have to rename?)? I am using mingw for compilation and python 2.5--I have built numpy successfully from source and have installed wxpython. I have the latest version of matplotlib from the trunk of the svn repository. Thanks, William - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users