Re: [Matplotlib-users] error on build on windows from SVN
You didn't mention which compiler you were trying to use. It looks like it can't find the Microsoft compiler. If you have it installed, perhaps it's installed in a non-standard location...? It should be theoretically possible to use the free Microsoft compiler, but I have no experience with that. I have used the Mingw32 compiler included with Cygwin to build matplotlib recently with success. There is also a version of Mingw32 that is not part of Cygwin. To use one of these compilers, you need to explicitly tell distutils (the system used to build matplotlib) to use it, using -c mingw32. Cheers, Mike C M wrote: On 9/24/07, *John Hunter* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 9/24/07, C M [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm having problems building matplotlib on windows from a folder from SVN, and haven't done it before (previously had used the prebuilt binary download). I don't know what I am doing wrong. Read the header of setupext.py, particularly the part for win32 users -- it may not be totally current, but will get much you closer to your goal. Once you have followed the steps there, if you hit another roadblock check back here and we will advise further and try and update the docs as necessary. You are actually in the best position to write documentation, since you are hitting this for the first time, so please take notes and/or update the instructions in setupext.py so we can add them to the docs. Well, not familiar with this at all but giving it a try...In the setupext.py header it reads: This build is similar to the mingw. Download the visual studio static dependencies from http://matplotlib.sourceforge.net/win32_static_vs.tar.gz http://matplotlib.sourceforge.net/win32_static_vs.tar.gz and see the README in that dir I did that. Then, README there says: Contents: Static dependencies for building mpl for win32 using Visual Studio. Extract to the matplotlib source folder. I extracted it to the matplotlib folder itself and also on another try the subfolder, src. In both cases then from cmd did: python setup.py build bdist_wininst In both cases got same error as before. I like to be more help but I am not sure what to do. It isn't crucial that I get the latest via SVN and build it myself, but I thought it would be good to learn to do this generally, just didn't realize it would be a bit of an expedition. Not sure what to do. Thanks. - 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 -- Michael Droettboom Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 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
Re: [Matplotlib-users] error on build on windows from SVN
The error message states that you must be using VS2003. Python is compiled with this, so all extensions must also be compiled with it. If you don't have a copy of VS2003 your best bet is to just use cygwin/mingw. - Charlie On 9/25/07, Michael Droettboom [EMAIL PROTECTED] wrote: You didn't mention which compiler you were trying to use. It looks like it can't find the Microsoft compiler. If you have it installed, perhaps it's installed in a non-standard location...? It should be theoretically possible to use the free Microsoft compiler, but I have no experience with that. I have used the Mingw32 compiler included with Cygwin to build matplotlib recently with success. There is also a version of Mingw32 that is not part of Cygwin. To use one of these compilers, you need to explicitly tell distutils (the system used to build matplotlib) to use it, using -c mingw32. Cheers, Mike C M wrote: On 9/24/07, *John Hunter* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 9/24/07, C M [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm having problems building matplotlib on windows from a folder from SVN, and haven't done it before (previously had used the prebuilt binary download). I don't know what I am doing wrong. Read the header of setupext.py, particularly the part for win32 users -- it may not be totally current, but will get much you closer to your goal. Once you have followed the steps there, if you hit another roadblock check back here and we will advise further and try and update the docs as necessary. You are actually in the best position to write documentation, since you are hitting this for the first time, so please take notes and/or update the instructions in setupext.py so we can add them to the docs. Well, not familiar with this at all but giving it a try...In the setupext.py header it reads: This build is similar to the mingw. Download the visual studio static dependencies from http://matplotlib.sourceforge.net/win32_static_vs.tar.gz http://matplotlib.sourceforge.net/win32_static_vs.tar.gz and see the README in that dir I did that. Then, README there says: Contents: Static dependencies for building mpl for win32 using Visual Studio. Extract to the matplotlib source folder. I extracted it to the matplotlib folder itself and also on another try the subfolder, src. In both cases then from cmd did: python setup.py build bdist_wininst In both cases got same error as before. I like to be more help but I am not sure what to do. It isn't crucial that I get the latest via SVN and build it myself, but I thought it would be good to learn to do this generally, just didn't realize it would be a bit of an expedition. Not sure what to do. Thanks. - 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 -- Michael Droettboom Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 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
Re: [Matplotlib-users] latex labels on saved plots
usetex=true IS supported for eps. I use epstopdf to get pdf's from there. Ryan On 9/21/07, Jordan Atlas [EMAIL PROTECTED] wrote: Do you have ghostscript installed? If you set verbose.level to debug or debug-annoying, what do you get? I realized that the ghostscript path wasn't set up properly, so that was what was causing part of the problem with EPS files. It works sometimes now (sometimes the EPS is just a blank file, even though the plot shows up properly when I do pylab.show(). I'm still trying to narrow down what ameks the difference here). I guess I mean TeX-like mathtext format parsed by matplotlib. For example, I'm using things like this: rc('text', usetex=True) Plotting.xlabel(r'\textbf{Time (s)}', fontsize=16) usetex=True means that you are trying to use an external TeX program. Ok, so am I to understand that usetex=True is not supported for PDF/EPS output? Can you explain what the Tex-like mathtext format parsed by matplotlib is? Thank you for your assistance, --Jordan - 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