You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1
(1) |
2
(43) |
3
(17) |
4
(12) |
5
(9) |
6
(14) |
7
(8) |
8
|
9
(15) |
10
(16) |
11
(11) |
12
(10) |
13
(20) |
14
(7) |
15
(4) |
16
(16) |
17
(25) |
18
(10) |
19
(27) |
20
(26) |
21
(6) |
22
(20) |
23
(12) |
24
(15) |
25
(22) |
26
(15) |
27
(43) |
28
(8) |
29
(6) |
30
(12) |
|
|
|
|
|
I am having problems installing on Leopard. It is not clear what your are renaming and to what. I download a zip file matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg.zip This extracts to a directory named matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg Do I rename this directory and remove -fat from the name so it is matplotlib-0.98.0-py2.5-macosx-10.3.egg I tried this but it didn't work sudo easy_install /Volumes/Aux/ServerSync/Install/Python/MacPython/ Python2.5.x/Matplotlib/matplotlib-0.98.0-py2.5-macosx-10.3.egg Password: Processing matplotlib-0.98.0-py2.5-macosx-10.3.egg Copying matplotlib-0.98.0-py2.5-macosx-10.3.egg to /Library/Frameworks/ Python.framework/Versions/2.5/lib/python2.5/site-packages Adding matplotlib 0.98.0 to easy-install.pth file Installed /Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3.egg Processing dependencies for matplotlib==0.98.0 Searching for matplotlib==0.98.0 Reading http://pypi.python.org/simple/matplotlib/ Reading http://matplotlib.sourceforge.net Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474 Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194 Reading http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474 Reading http://sourceforge.net/project/showfiles.php?group_id=80706 Best match: matplotlib 0.98.0 Downloading http://downloads.sourceforge.net/matplotlib/matplotlib-0.98.0.tar.gz?modtime=1212104461&big_mirror=0 Processing matplotlib-0.98.0.tar.gz Running matplotlib-0.98.0/setup.py -q bdist_egg --dist-dir /tmp/ easy_install-ELrNzS/matplotlib-0.98.0/egg-dist-tmp-Yaf5pv = = = = ======================================================================== BUILDING MATPLOTLIB matplotlib: 0.98.0 python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] platform: darwin REQUIRED DEPENDENCIES numpy: 1.1.0 freetype2: 9.16.3 OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.25 Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 wxPython: 2.8.7.1 * WxAgg extension not required for wxPython >= 2.8 Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment Qt: no Qt4: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: 1.4 pytz: 2007k OPTIONAL USETEX DEPENDENCIES dvipng: 1.9 ghostscript: 8.61 latex: 3.141592 pdftops: 3.02 EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES configobj: matplotlib will provide enthought.traits: matplotlib will provide [Edit setup.cfg to suppress the above messages] = = = = ======================================================================== warning: no files found matching 'NUMARRAY_ISSUES' warning: no files found matching 'MANIFEST' warning: no files found matching 'matplotlibrc' warning: no files found matching 'makeswig.py' warning: no files found matching 'lib/mpl_toolkits' no previously-included directories found matching 'examples/_tmp_*' warning: no files found matching '*' under directory 'swig' In file included from /usr/include/math.h:26, from /Library/Frameworks/Python.framework/Versions/ 2.5/include/python2.5/pyport.h:231, from /Library/Frameworks/Python.framework/Versions/ 2.5/include/python2.5/Python.h:57, from ./CXX/WrapPython.h:42, from CXX/cxxextensions.c:38: /usr/include/architecture/ppc/math.h:675: warning: conflicting types for built-in function ‘scalb’ ld: warning in /opt/local/lib/libfreetype.dylib, file is not of required architecture ld: warning in /opt/local/lib/libz.dylib, file is not of required architecture ld: in /opt/local/lib/libJPEG.dylib, file is not of required architecture for architecture ppc collect2: ld returned 1 exit status ld: warning, duplicate dylib /opt/local/lib/libz.1.dylib lipo: can't open input file: /var/tmp//ccWbB6PA.out (No such file or directory) error: Setup script exited with error: command 'g++' failed with exit status 1 Exception exceptions.OSError: (2, 'No such file or directory', 'src/ image.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x6227878>> ignored Exception exceptions.OSError: (2, 'No such file or directory', 'src/ path.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x62270f8>> ignored Exception exceptions.OSError: (2, 'No such file or directory', 'src/ backend_agg.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x6227468>> ignored On 06 Jun 2008, at 03:07 , Andrew Charles wrote: > I had this problem too, on Leopard. Trying to easy_install the egg > named as downloaded from sourceforge results in stuff being downloaded > and failing to build. > > Renaming the egg as suggested by Vincent results in an 'easy install'. > > ------------------------- > Andrew Charles > Centre for Australian Weather and Climate, > Australian Bureau of Meteorology. > Condensed Matter Theory Group, > RMIT University. > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ********************************************************************** Samuel M. Smith Ph.D. 2966 Fort Hill Road Eagle Mountain, Utah 84005-4108 801-768-2768 voice 801-768-2769 fax ********************************************************************** "The greatest source of failure and unhappiness in the world is giving up what we want most for what we want at the moment" **********************************************************************
May I asked what was installed incorrectly and how you fixed it? I'm seeing exactly the same error. Thanks in advance. -David Gideon Simpson wrote: > > Never mind. I think this may have had to do with something else not > being installed correctly. This config (numpy 1.10, apple python > 2.5.1, mpl 0.91.2, /usr/X11 png and freetype) works fine though. > > On May 29, 2008, at 9:59 PM, Alan G Isaac wrote: > >> On 2008年5月29日, Gideon Simpson apparently wrote: >>> Using apple python, numpy 1.10, I get the following error in >>> matplotlib 0.91.2: >> >> I do not see this. I have the >> same mpl and np version, >> and same Python version, >> but I'm on Windows. >> >> fwiw, >> Alan Isaac >> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- View this message in context: http://www.nabble.com/os-x-10.5.3-numpy-1.10-error-tp17550020p17701593.html Sent from the matplotlib - users mailing list archive at Nabble.com.
On Fri, Jun 6, 2008 at 11:16 AM, Christopher Burns <cb...@be...> wrote: > I'm sure that would work, but John's make target 'build_osx105' is > much easier, particularly for end users. > > $ make build_osx105 > > That's it. Unpythonic in it's appearance, but sets the required > CFLAGS and calls setup.py. What Charlie is saying is my solution will result in a slower mpl than his, since my solution uses a lower optimization level for all files, and he uses the lower level only on the problematic files. But the make solution has the advantage of being a one step automatic build, and I'm not looking for great performance on my laptop usually... JDH
I'm sure that would work, but John's make target 'build_osx105' is much easier, particularly for end users. $ make build_osx105 That's it. Unpythonic in it's appearance, but sets the required CFLAGS and calls setup.py. On Fri, Jun 6, 2008 at 7:41 AM, Charlie Moad <cw...@gm...> wrote: > I just used the default 10.5 compiler. I didn't use -Os for the whole > run though. I would just copy the gcc command on the files where it > failed and replace -O3 with -Os. Kind of lame, I know, but most the > build I did was ran with -O3. > > - Charlie > -- Christopher Burns Computational Infrastructure for Research Labs 10 Giannini Hall, UC Berkeley phone: 510.643.4014 http://cirl.berkeley.edu/
So I'll admit that I renamed that file to -fat manually. The reason I did this is because it gets named -i386 by default even though it is a fat build. Does anyone have a good idea of how to fix this? - Charlie On Fri, Jun 6, 2008 at 3:07 AM, Andrew Charles <ac...@gm...> wrote: > I had this problem too, on Leopard. Trying to easy_install the egg > named as downloaded from sourceforge results in stuff being downloaded > and failing to build. > > Renaming the egg as suggested by Vincent results in an 'easy install'. > > ------------------------- > Andrew Charles > Centre for Australian Weather and Climate, > Australian Bureau of Meteorology. > Condensed Matter Theory Group, > RMIT University. > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
I just used the default 10.5 compiler. I didn't use -Os for the whole run though. I would just copy the gcc command on the files where it failed and replace -O3 with -Os. Kind of lame, I know, but most the build I did was ran with -O3. - Charlie On Thu, Jun 5, 2008 at 8:19 PM, Christopher Barker <Chr...@no...> wrote: > Christopher Burns wrote: >> Is this really the current solution to building matplotlib on OSX, >> installing a new compiler and hacking the python Makefile? > > No, I don't think so. I haven't built it in a while, but I think the OP > chose to install 4.2 for some other reason, and maybe had to patch the > Makefile because of that. > > Charlie, what are you building with? > > -Chris > > > > -- > Christopher Barker, Ph.D. > Oceanographer > > Emergency Response Division > NOAA/NOS/OR&R (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception > > Chr...@no... > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
The choice for math fonts is somewhat limited, because so few fonts have the necessary symbols and spacing information, even if they are reasonably complete Unicode-wise. You basically have three supported choices, and one experimental choice, set with the mathtext.fontset parameter: cm: The TeX Computer Modern fonts stix: A new math font designed to blend with Times stixsans: A sans-serif math font (similar, but not identical to either Helvetica or Arial) custom: Provide a Unicode font -- this generally doesn't work very well. As for your second question, it should have worked to set all non-mathtext text to Helvetica. Do you have any other customizations in your matplotlibrc file? Cheers, Mike Berit Hinnemann wrote: > > Hi all, > > I have just upgraded to 0.93.1 (actually it turned out I did not even > have to remove the 0.90 egg, python imports from 0.91 all by itself. I > do not completely understand why, but that was a nice surprise...) and > now the mixing of normal text and mathtext works nicely. > > Is it possible to use a different font than the latex-like font for > the mathtext? It seems to be, as I found some lines relating to this > in the matplotlibrc (the mathtext settings), but I am not sure how to > set them. I would like a font which looks more like Arial or Helvetica > text, does anybody know how to do this? > > Also, I tried to set the default font to Helvetica in the matplotlibrc > file, but this does not affect the text in the plot. Is it enough to set > > font.family : sans-serif > font.sans-serif : Helvetica > > to always use the Helvetica font, also for the axes? Or how do I set > the font used for the tick labels? > > Any pointers would be much appreciated, and apologies if I should have > overlooked prior posts or documentation! Thanks! > > Best regards, Berit > ------------------------------------------------------------------------ > *Berit Hinnemann* > Research Scientist | Characterization Department | Research & Development > > *Haldor Topsøe A/S* > Nymøllevej 55 > DK-2800 Kgs. Lyngby > Phone: +45 4527 2130 (direct) > > /Haldor Topsøe is market leading within heterogeneous catalysis and > supplies catalysts and process design for oil refineries, chemical > plants and the energy sector. The environment plays an important role > in Topsøe's research and production, and through the introduction of > new catalysts and technologies the company supports a more sustainable > use of the world's resources. Annual revenues total DKK 3.5 billion > generated by our 1,700 dedicated employees. For additional information > please see our web site /*_www.topsoe.com_* <http://www.topsoe.com/> > > ------------------------------------------------------------------------ > > This e-mail message (including attachments, if any) is confidential > and may be privileged. It is intended only for the addressee. > Any unauthorised distribution or disclosure is prohibited. Disclosure > to anyone other than the intended recipient does not constitute waiver > of privilege. > If you have received this e-mail in error, please notify the sender by > e-mail and delete it and any attachments from your computer system and > records. > HALDOR TOPSOE (_www.topsoe.com_ <http://www.topsoe.com/>) > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
Hi Andrew, It looks like you have an old version of numpy somewhere on your python path. You need to delete all the old numpy installs/eggs from site-packages, and anywhere else on your PYTHONPATH. On Friday 06 June 2008 3:48:05 am Andrew Charles wrote: > I recently removed my existing numpy and matplotlib installations and > rebuilt from svn, then installed the matplotlib-0.98.0 egg > If I fire up ipython and then get to work everything is ok, but > attempting to start ipython with the -pylab flag results in a numpy > version error message, as shown below. > > I thought I'd removed all traces of the older numpy, but apparently > there is a vestige of it somewhere - anyone else get this? > > ---------------------------------------------------- > > spinode: ipython > Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) > Type "copyright", "credits" or "license" for more information. > > IPython 0.8.2 -- An enhanced Interactive Python. > ? -> Introduction and overview of IPython's features. > %quickref -> Quick reference. > help -> Python's own help system. > object? -> Details about 'object'. ?object also works, ?? prints more. > > In [1]: import numpy > > In [2]: numpy.version.version > Out[2]: '1.2.0.dev5255' > > In [3]: import pylab > > In [4]: pylab.plot([0,0.1,0.5]) > Out[4]: [<matplotlib.lines.Line2D object at 0x2280a90>] > > In [5]: pylab.show() > > In [6]: exit() > Do you really want to exit ([y]/n)? y > spinode: ipython -pylab > numpy 1.1 or later is required; you have 1.0.5.dev4897 > > > > ------------------------- > Andrew Charles > Centre for Australian Weather and Climate, > Australian Bureau of Meteorology. > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Darren S. Dale, Ph.D. dd...@co...
Hi all, I have just upgraded to 0.93.1 (actually it turned out I did not even have to remove the 0.90 egg, python imports from 0.91 all by itself. I do not completely understand why, but that was a nice surprise...) and now the mixing of normal text and mathtext works nicely. Is it possible to use a different font than the latex-like font for the mathtext? It seems to be, as I found some lines relating to this in the matplotlibrc (the mathtext settings), but I am not sure how to set them. I would like a font which looks more like Arial or Helvetica text, does anybody know how to do this? Also, I tried to set the default font to Helvetica in the matplotlibrc file, but this does not affect the text in the plot. Is it enough to set font.family : sans-serif font.sans-serif : Helvetica to always use the Helvetica font, also for the axes? Or how do I set the font used for the tick labels? Any pointers would be much appreciated, and apologies if I should have overlooked prior posts or documentation! Thanks! Best regards, Berit Berit Hinnemann Research Scientist | Characterization Department | Research & Development Haldor Topsøe A/S Nymøllevej 55 DK-2800 Kgs. Lyngby Phone: +45 4527 2130 (direct) Haldor Topsøe is market leading within heterogeneous catalysis and supplies catalysts and process design for oil refineries, chemical plants and the energy sector. The environment plays an important role in Topsøe's research and production, and through the introduction of new catalysts and technologies the company supports a more sustainable use of the world's resources. Annual revenues total DKK 3.5 billion generated by our 1,700 dedicated employees. For additional information please see our web site www.topsoe.com This e-mail message (including attachments, if any) is confidential and may be privileged. It is intended only for the addressee. Any unauthorised distribution or disclosure is prohibited. Disclosure to anyone other than the intended recipient does not constitute waiver of privilege. If you have received this e-mail in error, please notify the sender by e-mail and delete it and any attachments from your computer system and records. HALDOR TOPSOE (www.topsoe.com)
I recently removed my existing numpy and matplotlib installations and rebuilt from svn, then installed the matplotlib-0.98.0 egg If I fire up ipython and then get to work everything is ok, but attempting to start ipython with the -pylab flag results in a numpy version error message, as shown below. I thought I'd removed all traces of the older numpy, but apparently there is a vestige of it somewhere - anyone else get this? ---------------------------------------------------- spinode: ipython Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) Type "copyright", "credits" or "license" for more information. IPython 0.8.2 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object'. ?object also works, ?? prints more. In [1]: import numpy In [2]: numpy.version.version Out[2]: '1.2.0.dev5255' In [3]: import pylab In [4]: pylab.plot([0,0.1,0.5]) Out[4]: [<matplotlib.lines.Line2D object at 0x2280a90>] In [5]: pylab.show() In [6]: exit() Do you really want to exit ([y]/n)? y spinode: ipython -pylab numpy 1.1 or later is required; you have 1.0.5.dev4897 ------------------------- Andrew Charles Centre for Australian Weather and Climate, Australian Bureau of Meteorology.
I had this problem too, on Leopard. Trying to easy_install the egg named as downloaded from sourceforge results in stuff being downloaded and failing to build. Renaming the egg as suggested by Vincent results in an 'easy install'. ------------------------- Andrew Charles Centre for Australian Weather and Climate, Australian Bureau of Meteorology. Condensed Matter Theory Group, RMIT University.
'make build_osx105' worked great, thank you! Sorry I didn't see that earlier. On Thu, Jun 5, 2008 at 6:50 PM, John Hunter <jd...@gm...> wrote: > On Thu, Jun 5, 2008 at 4:19 PM, Christopher Burns <cb...@be...> wrote: >> Is this really the current solution to building matplotlib on OSX, >> installing a new compiler and hacking the python Makefile? >> >> I was able to build matplotlib 0.91.2 just fine on OSX, sometime >> around March I checked out the truck to fix a bug and discovered I >> couldn't build the svn version. Matplotlib is the only package with a >> dependency on gcc 4.2, all the other packages I build, numpy, scipy, >> ipython, etc... build with gcc 4.0. Why do you have this dependency? >> Is there an easier solution? >> >> I'm reluctant to upgrade to gcc 4.2 and loose the ability to build >> other packages I need. > > An upgrade to 4.2 is not required. On the svn trunk (0.98) there is a > bug in the apple gcc compiler with our agg extension that causes a > compiler error if the optimization level is -O3. You can work around > it by using -Os instead. I build with the default apple compiler and > have a line in the Makefile in the mpl src dir that reads:: > > build_osx105: > CFLAGS="-Os -arch i386 -arch ppc" LDFLAGS="-Os -arch i386 -arch > ppc" python setup.py build > > Some of the other suggested tricks like editing the Python Makefile > configs may be handy so you don't have to pass around CFLAGS and > LDFLAGS, but they are in no way required. My build notes are at: > > http://ipython.scipy.org/moin/Py4Science/InstallationOSX > > but I need to update them with the info in this email. Don't ignore > the pkgconfig stuff, as it is helpful to help find freetype and > libpng. Here is my build output:: > > home:~/mpl> rm -rf build > home:~/mpl> gcc --version > i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465) > > home:~/mpl> make build_osx105 >& build.out > -- Christopher Burns Computational Infrastructure for Research Labs 10 Giannini Hall, UC Berkeley phone: 510.643.4014 http://cirl.berkeley.edu/
On Thu, Jun 5, 2008 at 4:19 PM, Christopher Burns <cb...@be...> wrote: > Is this really the current solution to building matplotlib on OSX, > installing a new compiler and hacking the python Makefile? > > I was able to build matplotlib 0.91.2 just fine on OSX, sometime > around March I checked out the truck to fix a bug and discovered I > couldn't build the svn version. Matplotlib is the only package with a > dependency on gcc 4.2, all the other packages I build, numpy, scipy, > ipython, etc... build with gcc 4.0. Why do you have this dependency? > Is there an easier solution? > > I'm reluctant to upgrade to gcc 4.2 and loose the ability to build > other packages I need. An upgrade to 4.2 is not required. On the svn trunk (0.98) there is a bug in the apple gcc compiler with our agg extension that causes a compiler error if the optimization level is -O3. You can work around it by using -Os instead. I build with the default apple compiler and have a line in the Makefile in the mpl src dir that reads:: build_osx105: CFLAGS="-Os -arch i386 -arch ppc" LDFLAGS="-Os -arch i386 -arch ppc" python setup.py build Some of the other suggested tricks like editing the Python Makefile configs may be handy so you don't have to pass around CFLAGS and LDFLAGS, but they are in no way required. My build notes are at: http://ipython.scipy.org/moin/Py4Science/InstallationOSX but I need to update them with the info in this email. Don't ignore the pkgconfig stuff, as it is helpful to help find freetype and libpng. Here is my build output:: home:~/mpl> rm -rf build home:~/mpl> gcc --version i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465) home:~/mpl> make build_osx105 >& build.out
The problem appears to be the "-fat" at the end of the file name. The filename 'matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg' _works_, but then downloads the tarball and tries to build the source, which _fails_ with gcc 4.0. Perhaps rename the egg and repost to sourceforge? This WORKS: ########################################################## cburns@Downloads $ cp matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg matplotlib-0.98.0-py2.5-macosx-10.3.egg cburns@Downloads $ easy_install matplotlib-0.98.0-py2.5-macosx-10.3.egg Processing matplotlib-0.98.0-py2.5-macosx-10.3.egg creating /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3.egg Extracting matplotlib-0.98.0-py2.5-macosx-10.3.egg to /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages Removing matplotlib 0.98.0 from easy-install.pth file Adding matplotlib 0.98.0 to easy-install.pth file Installed /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3.egg Processing dependencies for matplotlib==0.98.0 Finished processing dependencies for matplotlib==0.98.0 The long name WORKS BUT then downloads the tarball and the build FAILS: ########################################################## cburns@Downloads $ easy_install ./matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg Processing matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg removing '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg' (and everything under it) creating /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg Extracting matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg to /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages Removing matplotlib 0.91.2svn from easy-install.pth file Adding matplotlib 0.98.0 to easy-install.pth file Installed /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg Processing dependencies for matplotlib==0.98.0 Searching for matplotlib==0.98.0 Reading http://pypi.python.org/simple/matplotlib/ Reading http://matplotlib.sourceforge.net Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474 Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194 Reading http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474 Reading http://sourceforge.net/project/showfiles.php?group_id=80706 Best match: matplotlib 0.98.0 Downloading http://downloads.sourceforge.net/matplotlib/matplotlib-0.98.0.tar.gz?modtime=1212104461&big_mirror=0 Processing matplotlib-0.98.0.tar.gz Running matplotlib-0.98.0/setup.py -q bdist_egg --dist-dir /var/folders/Yd/Yd035yKSFsquGZJJL5FzVE+++TI/-Tmp-/easy_install-aJSbMP/matplotlib-0.98.0/egg-dist-tmp-0gX7af ============================================================================ BUILDING MATPLOTLIB matplotlib: 0.98.0 python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] platform: darwin REQUIRED DEPENDENCIES numpy: 1.2.0.dev5252 freetype2: 9.16.3 OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.24 Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 wxPython: 2.8.7.1 * WxAgg extension not required for wxPython >= 2.8 Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment Qt: no Qt4: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: matplotlib will provide pytz: matplotlib will provide OPTIONAL USETEX DEPENDENCIES dvipng: no ghostscript: /bin/sh: gs: command not found latex: no EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES configobj: matplotlib will provide enthought.traits: matplotlib will provide [Edit setup.cfg to suppress the above messages] ============================================================================ warning: no files found matching 'NUMARRAY_ISSUES' warning: no files found matching 'MANIFEST' warning: no files found matching 'matplotlibrc' warning: no files found matching 'makeswig.py' warning: no files found matching 'lib/mpl_toolkits' no previously-included directories found matching 'examples/_tmp_*' warning: no files found matching '*' under directory 'swig' In file included from /usr/X11/include/freetype2/freetype/freetype.h:41, from src/ft2font.h:14, from src/ft2font.cpp:1: /usr/X11/include/freetype2/freetype/config/ftconfig.h:65:1: warning: "SIZEOF_LONG" redefined In file included from /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:8, from ./CXX/WrapPython.h:42, from ./CXX/Extensions.hxx:48, from src/ft2font.h:4, from src/ft2font.cpp:1: /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyconfig.h:814:1: warning: this is the location of the previous definition In file included from /usr/X11/include/freetype2/freetype/freetype.h:41, from src/ft2font.h:14, from src/ft2font.cpp:1: /usr/X11/include/freetype2/freetype/config/ftconfig.h:65:1: warning: "SIZEOF_LONG" redefined In file included from /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:8, from ./CXX/WrapPython.h:42, from ./CXX/Extensions.hxx:48, from src/ft2font.h:4, from src/ft2font.cpp:1: /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyconfig.h:814:1: warning: this is the location of the previous definition In file included from /usr/include/math.h:26, from /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyport.h:231, from /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:57, from ./CXX/WrapPython.h:42, from CXX/cxxextensions.c:38: /usr/include/architecture/ppc/math.h:675: warning: conflicting types for built-in function 'scalb' In file included from /usr/include/math.h:26, from /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyport.h:231, from /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:57, from src/cntr.c:17: /usr/include/architecture/ppc/math.h:675: warning: conflicting types for built-in function 'scalb' In file included from /usr/include/math.h:26, from /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyport.h:231, from /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:57, from src/nxutils.c:1: /usr/include/architecture/ppc/math.h:675: warning: conflicting types for built-in function 'scalb' src/_image.cpp: In member function 'Py::Object _image_module::from_images(const Py::Tuple&)': src/_image.cpp:848: error: insn does not satisfy its constraints: (insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set (mem:QI (plus:SI (reg/f:SI 6 bp) (const_int -280 [0xfffffffffffffee8])) [0 SR.2970+0 S1 A8]) (reg:QI 5 di)) 56 {*movqi_1} (nil) (nil)) src/_image.cpp:848: internal compiler error: in reload_cse_simplify_operands, at postreload.c:391 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://developer.apple.com/bugreporter> for instructions. lipo: can't figure out the architecture type of: /var/folders/Yd/Yd035yKSFsquGZJJL5FzVE+++TI/-Tmp-//ccqMmzC6.out error: Setup script exited with error: command 'gcc' failed with exit status 1 Exception exceptions.OSError: (2, 'No such file or directory', 'src/image.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x1af5a08>> ignored Exception exceptions.OSError: (2, 'No such file or directory', 'src/path.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x1af5300>> ignored Exception exceptions.OSError: (2, 'No such file or directory', 'src/backend_agg.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x1af55f8>> ignored On Mon, Jun 2, 2008 at 2:35 PM, Christopher Barker <Chr...@no...> wrote: > Vincent Noel wrote: >> If you rename matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg to >> matplotlib-0.98.0-py2.5.egg, >> easy_install will install it from the disk. > > It installed just fine for me with the long name.... > >>> easy_install ./matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg >>> >>> Processing matplotlib-0.98.0-py2.5-macosx-10.3-fat.egg >>> removing '/Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5- > > This is a bit odd -- a Framework Build of Python should be in > /Library/Frameworks... (or System/Library/Frameworks). Maybe that egg > doesn't work right with a non-framework build. > > I think it should work with either the 2.5 Apple supplies with OS-X > 10.5, or the python.org 2.5 build. > > -Chris > > > -- > Christopher Barker, Ph.D. > Oceanographer > > Emergency Response Division > NOAA/NOS/OR&R (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception > > Chr...@no... > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Christopher Burns Computational Infrastructure for Research Labs 10 Giannini Hall, UC Berkeley phone: 510.643.4014 http://cirl.berkeley.edu/
Christopher Burns wrote: > Is this really the current solution to building matplotlib on OSX, > installing a new compiler and hacking the python Makefile? No, I don't think so. I haven't built it in a while, but I think the OP chose to install 4.2 for some other reason, and maybe had to patch the Makefile because of that. Charlie, what are you building with? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no...
Is this really the current solution to building matplotlib on OSX, installing a new compiler and hacking the python Makefile? I was able to build matplotlib 0.91.2 just fine on OSX, sometime around March I checked out the truck to fix a bug and discovered I couldn't build the svn version. Matplotlib is the only package with a dependency on gcc 4.2, all the other packages I build, numpy, scipy, ipython, etc... build with gcc 4.0. Why do you have this dependency? Is there an easier solution? I'm reluctant to upgrade to gcc 4.2 and loose the ability to build other packages I need. Chris On Thu, May 29, 2008 at 4:51 AM, Joshua Lippai <dis...@gm...> wrote: > I've consistently been able to build matplotlib on OS X. Just make > sure you have all the dependencies installed. Personally, I have lbpng > and whatnot installed in /usr/local instead of /usr/X11. I don't know > if that'll help. Also, I use the GCC 4.2 that Apple has available for > download on developer.apple.com. Then you just change the Makefile in > the /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config/ > directory to not use Wno-long-double or no-cpp-precomp. I also took > out all the ppc arch flags since it was causing some issues there with > my versions of libpng and whatnot technically not being universal > binaries. If you don't want to build univeral binary versions of your > dependencies or use the ones alread provided in /usr/X11 (which are > universal I think), you should make Python only build for your > architecture, which is what I did. > > My only issue with matplotlib thusfar seems to be the inability to do > the plot3d examples from the scipy website, but I'm told that stuff is > officially unsupported anyway. > > Josh > -- Christopher Burns Computational Infrastructure for Research Labs 10 Giannini Hall, UC Berkeley phone: 510.643.4014 http://cirl.berkeley.edu/
Bryan, Thanks for pointing this out. Mike D. has made a change in the svn trunk to restore the automatic closing of polygons made with the patches.Polygon constructor, which is used by the fill command. Eric Bryan Fodness wrote: > It seems like it does not connect the last point to the first point. > This also happens with the matplotlib.patches Polygon. > > > from pylab import fill, xlim, ylim, savefig > x1, x2, y1, y2 = -4, 4, -4, 4 > fill([x1,x2,x2,x1], [y1,y1,y2,y2], fc='None', ec='r') > xlim(-5,5) > ylim(-5,5) > savefig('edge_test') > > > On Thu, Jun 5, 2008 at 1:18 AM, Eric Firing <ef...@ha... > <mailto:ef...@ha...>> wrote: > > Bryan Fodness wrote: > > I just upgraded to 0.98.0 and recreated a few graphs. I am > missing parts of the edges of a fill and polygon. Any suggestions? > > > Please post an illustrative script, as simple as possible. > > Eric > > > > > -- > "The game of science can accurately be described as a never-ending > insult to human intelligence." - João Magueijo
I just read your question more closely -- that you want to multiply an array by an array that describes the polygon. Do you mean the array of vertices that describe the polygon or something like a 2D rasterization (image) of the polygon? I perhaps wrongfully assumed you just wanted to do hit-testing on a polygon. What I was thinking (and this still may be relevant to your problem) was: ==== from matplotlib.path import Path # Create a unit square path = Path([[0, 0], [1, 0], [1, 1], [0, 1], [0, 0]]) # Test for some points that are inside and outside of the square assert path.contains_point([0.5, 0.5]) assert not path.contains_point([1.5, 0.5]) ==== If you want to get an image of the polygon, it's probably theoretically doable, but won't be straightforward. It will involve working directly with the Agg backend, I think. Let me know your use case is, and we can step through that. Perhaps there's another way to achieve the same end result that won't require as much wrestling. Cheers, Mike Bryan Fodness wrote: > Could you help me set this up? I am still fairly new to python. > > On Thu, Jun 5, 2008 at 1:05 PM, Michael Droettboom <md...@st... > <mailto:md...@st...>> wrote: > > If you're using 0.98, you can create a Path object (see path.py) > from your polygon and then use the point_in_polygon method to test > whether a point is inside or outside the polygon. This doesn't > require rendering the polygon at all and works entirely in vector > space. Let me know if you need help with the details. > > Cheers, > Mike > > Bryan Fodness wrote: > > Is there a way to get the underlying array that the fill > function uses to graph a polygon? > This is assuming that it uses an array. I would like to be > able to multiple an array by an array that describes the > polygon (one if inside the polygon and zero if outside) > > > -- > "The game of science can accurately be described as a > never-ending insult to human intelligence." - João Magueijo > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > <mailto:Mat...@li...> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > -- > Michael Droettboom > Science Software Branch > Operations and Engineering Division > Space Telescope Science Institute > Operated by AURA for NASA > > > > > -- > "The game of science can accurately be described as a never-ending > insult to human intelligence." - João Magueijo -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
Johan Mazel wrote: > Hi > I can't find any deb package of matplotlib in the url that you gave > me. The sources are there but I'm not interested in the sources since > I can find them on the official website of matplotlib. > Is there any problem ? > Thanks for the answer by the way. > Johan mazel They are there. For i386: http://debs.astraw.com/hardy/python-matplotlib_0.98.0-0ads2_i386.deb For amd64: http://debs.astraw.com/hardy/python-matplotlib_0.98.0-0ads2_amd64.deb For all arch: http://debs.astraw.com/hardy/python-matplotlib-data_0.98.0-0ads2_all.deb http://debs.astraw.com/hardy/python-matplotlib-doc_0.98.0-0ads2_all.deb
Hi I can't find any deb package of matplotlib in the url that you gave me. The sources are there but I'm not interested in the sources since I can find them on the official website of matplotlib. Is there any problem ? Thanks for the answer by the way. Johan mazel 2008年6月3日 Andrew Straw <str...@as...>: > I have .debs for Ubuntu Hardy available at http://debs.astraw.com/hardy/ > . Note that these packages don't follow all Debian/Ubuntu guidelines and > are of lower quality than the official packages, which I recommend over > these. Nevertheless, I've packaged these things up for my personal and > my laboratory's use, and anyone is welcome to use them, too. As always, > please let me know if you find any bugs. > > (The source .dsc packages are also available at the same site, and might > work with recompilation for Debian testing and possibly older Ubuntu > versions.) > > -Andrew > > Johan Mazel wrote: > > Hi > > I'd like to know when the latest packages in *.deb or *.rpm (from the > > 0.98.0 version) will be available in the repositories ? > > If you have any addresses of "custom" repositories where I could get > > this package, it would be nice too. > > > > I prefer to have a package installed than installed the software > > myself since I think it would be easier for me if I want to uninstall it. > > > > Thanks. > > Johan Mazel > > ------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > >
Is there a way to get the underlying array that the fill function uses to graph a polygon? This is assuming that it uses an array. I would like to be able to multiple an array by an array that describes the polygon (one if inside the polygon and zero if outside) -- "The game of science can accurately be described as a never-ending insult to human intelligence." - João Magueijo
It seems like it does not connect the last point to the first point. This also happens with the matplotlib.patches Polygon. from pylab import fill, xlim, ylim, savefig x1, x2, y1, y2 = -4, 4, -4, 4 fill([x1,x2,x2,x1], [y1,y1,y2,y2], fc='None', ec='r') xlim(-5,5) ylim(-5,5) savefig('edge_test') On Thu, Jun 5, 2008 at 1:18 AM, Eric Firing <ef...@ha...> wrote: > Bryan Fodness wrote: > >> I just upgraded to 0.98.0 and recreated a few graphs. I am missing parts >> of the edges of a fill and polygon. Any suggestions? >> >> > Please post an illustrative script, as simple as possible. > > Eric > -- "The game of science can accurately be described as a never-ending insult to human intelligence." - João Magueijo
Bryan Fodness wrote: > I just upgraded to 0.98.0 and recreated a few graphs. I am missing > parts of the edges of a fill and polygon. Any suggestions? > Please post an illustrative script, as simple as possible. Eric
Bryan Fodness wrote: > I tried posting this to numpy, but my posts never show up. odd -- it works fine for me -- are you subscribed? anyway: >>> import numpy as np >>> a = np.arange(100).reshape((10,10)) >>> b = np.ones((5,7)) * 30 >>> a array([[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [10, 11, 12, 13, 14, 15, 16, 17, 18, 19], [20, 21, 22, 23, 24, 25, 26, 27, 28, 29], [30, 31, 32, 33, 34, 35, 36, 37, 38, 39], [40, 41, 42, 43, 44, 45, 46, 47, 48, 49], [50, 51, 52, 53, 54, 55, 56, 57, 58, 59], [60, 61, 62, 63, 64, 65, 66, 67, 68, 69], [70, 71, 72, 73, 74, 75, 76, 77, 78, 79], [80, 81, 82, 83, 84, 85, 86, 87, 88, 89], [90, 91, 92, 93, 94, 95, 96, 97, 98, 99]]) >>> b array([[ 30., 30., 30., 30., 30., 30., 30.], [ 30., 30., 30., 30., 30., 30., 30.], [ 30., 30., 30., 30., 30., 30., 30.], [ 30., 30., 30., 30., 30., 30., 30.], [ 30., 30., 30., 30., 30., 30., 30.]]) >>> a[3:8, 2:9] += b >>> a array([[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [ 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], [ 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], [ 30, 31, 62, 63, 64, 65, 66, 67, 68, 39], [ 40, 41, 72, 73, 74, 75, 76, 77, 78, 49], [ 50, 51, 82, 83, 84, 85, 86, 87, 88, 59], [ 60, 61, 92, 93, 94, 95, 96, 97, 98, 69], [ 70, 71, 102, 103, 104, 105, 106, 107, 108, 79], [ 80, 81, 82, 83, 84, 85, 86, 87, 88, 89], [ 90, 91, 92, 93, 94, 95, 96, 97, 98, 99]]) >>> -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no...
I tried posting this to numpy, but my posts never show up. So, I was hoping someone here might be able to help me. I have two arrays that are different sizes and i would like to be able to add them for plotting. If I have an array a and b, [[1 2 3 4 5 6 7 8 9] [1 2 3 4 5 6 7 8 9] [1 2 3 4 5 6 7 8 9] [1 2 3 4 5 6 7 8 9] [1 2 3 4 5 6 7 8 9] [1 2 3 4 5 6 7 8 9] [1 2 3 4 5 6 7 8 9] [1 2 3 4 5 6 7 8 9] [1 2 3 4 5 6 7 8 9] [1 2 3 4 5 6 7 8 9]] [[0 0 0 0 0] [0 3 3 3 0] [0 3 3 3 0] [0 3 3 3 0] [0 0 0 0 0]] but I would like to change b to look like this, [[0 0 0 0 0 0 0 0 0] [0 0 0 0 0 0 0 0 0] [0 0 3 3 3 3 3 0 0] [0 0 3 3 3 3 3 0 0] [0 0 3 3 3 3 3 0 0] [0 0 3 3 3 3 3 0 0] [0 0 3 3 3 3 3 0 0] [0 0 3 3 3 3 3 0 0] [0 0 0 0 0 0 0 0 0] [0 0 0 0 0 0 0 0 0]] so I can get the sum of a and b. My data will not be regular like these. I have a 400x60 array with irregular data that I would like as a 400x400 array. Does anybody know of an easy way to accomplish this? Bryan -- "The game of science can accurately be described as a never-ending insult to human intelligence." - João Magueijo