Re: [Matplotlib-users] Installation issue: python setup.py install --home=... fails
In article 528e8aac.1090...@stsci.edu, Michael Droettboom md...@stsci.edu wrote: When you use |--home|, distutils assumes you are referring to a home directory in which you have a tree of libraries in |lib|lib64| living there, so it appends |lib64/python| to the given path: | python setup.py install --home=/foo running install Checking .pth file supportin /foo/lib64/python/ error: can't create or remove files in install directory| So the issue is not that your PYTHONPATH doesn't contain |/lsst/home/rowen/code/sandbox/Linux64/external/matplotlib/1.3.1+1| (which it does) but that it doesn't contain |/lsst/home/rowen/code/sandbox/Linux64/external/matplotlib/1.3.1+1/lib/python| |. With matplotlib 1.2.1, we used raw distutils and not setuptools, which does the same thing without the strict check. And that does allow users to shoot themselves in the foot, since the check is in fact right when it says things won't work: | git checkout v1.2.1 mkdir ~/foo python setup.py install --home=~/foo ... PYTHONPATH=~/foo python Python2.7.5 (default, Oct8 2013,12:19:40) [GCC4.8.1 20130603 (Red Hat4.8.1-1)] on linux2 Typehelp,copyright,credits or license for more information. import matplotlib Traceback (most recent call last): Filestdin, line1,in module ImportError: No module named matplotlib| I think what you really want to use is |--install-lib|, which will install the matplotlib library directly inside of the given path, which (if it's also on the `PYTHONPATH`) it will work. Thank you. That did it! For the record, we do actually want the files in path/lib/python. So I fixed it by manually adding path/lib/python to PYTHONPATH before running the installer. It would help if the error message showed which path was expected to be on the PYTHONPATH, but now that I know I'm happy. -- Russell -- Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] figure.colorbar sometimes raises an exception
We have code that ran fine in 1.1.1 that raises an exception in colorbar in 1.2.1 and 1.3.1. I have appended an example; I'm afraid it is rather extreme, but we have seen this for arrays that have more than one non-masked values as well, even with the values not all being equal. Should I report this as a bug? Should we guard all our calls to colormap with try/except, or perhaps there's a flag we can set that says do your best? (But I don't see anything like that in the docs). -- Russell cmap = getattr(cm, cmap) cmap.set_bad('k', 0.2) if cmapOver is not None: cmap.set_over(cmapOver, 1.0) if cmapUnder is not None: cmap.set_under(cmapUnder, 1.0) p = PatchCollection(patches, norm=norm, cmap=cmap) value_array = numpy.array(values) masked_value_array = numpyMa.masked_where(numpy.isnan(value_array), value_array) p.set_array(masked_value_array) cb = self.fig.colorbar(p) File /nfs/lsst/home/rowen/code/testing_pipeQA/python/lsst/testing/pipeQA/figu res/FpaQaFigure.py, line 317, in makeFigure cb = self.fig.colorbar(p) File /lsst/DC3/stacks/gcc445-RH6/28nov2011/Linux64/external/matplotlib/1.3.1+ 1/lib/python/matplotlib-1.3.1-py2.7-linux-x86_64.egg/matplotlib/figure.py , line 1451, in colorbar cb = cbar.colorbar_factory(cax, mappable, **kw) File /lsst/DC3/stacks/gcc445-RH6/28nov2011/Linux64/external/matplotlib/1.3.1+ 1/lib/python/matplotlib-1.3.1-py2.7-linux-x86_64.egg/matplotlib/colorbar. py, line 1274, in colorbar_factory cb = Colorbar(cax, mappable, **kwargs) File /lsst/DC3/stacks/gcc445-RH6/28nov2011/Linux64/external/matplotlib/1.3.1+ 1/lib/python/matplotlib-1.3.1-py2.7-linux-x86_64.egg/matplotlib/colorbar. py, line 877, in __init__ ColorbarBase.__init__(self, ax, **kw) File /lsst/DC3/stacks/gcc445-RH6/28nov2011/Linux64/external/matplotlib/1.3.1+ 1/lib/python/matplotlib-1.3.1-py2.7-linux-x86_64.egg/matplotlib/colorbar. py, line 317, in __init__ self.draw_all() File /lsst/DC3/stacks/gcc445-RH6/28nov2011/Linux64/external/matplotlib/1.3.1+ 1/lib/python/matplotlib-1.3.1-py2.7-linux-x86_64.egg/matplotlib/colorbar. py, line 342, in draw_all self._config_axes(X, Y) File /lsst/DC3/stacks/gcc445-RH6/28nov2011/Linux64/external/matplotlib/1.3.1+ 1/lib/python/matplotlib-1.3.1-py2.7-linux-x86_64.egg/matplotlib/colorbar. py, line 433, in _config_axes self.update_ticks() File /lsst/DC3/stacks/gcc445-RH6/28nov2011/Linux64/external/matplotlib/1.3.1+ 1/lib/python/matplotlib-1.3.1-py2.7-linux-x86_64.egg/matplotlib/colorbar. py, line 367, in update_ticks ticks, ticklabels, offset_string = self._ticker() File /lsst/DC3/stacks/gcc445-RH6/28nov2011/Linux64/external/matplotlib/1.3.1+ 1/lib/python/matplotlib-1.3.1-py2.7-linux-x86_64.egg/matplotlib/colorbar. py, line 580, in _ticker ticks = self._locate(b) File /lsst/DC3/stacks/gcc445-RH6/28nov2011/Linux64/external/matplotlib/1.3.1+ 1/lib/python/matplotlib-1.3.1-py2.7-linux-x86_64.egg/matplotlib/colorbar. py, line 829, in _locate z = np.take(y, i0) + (xn - np.take(b, i0)) * dy / db FloatingPointError: invalid value encountered in divide Where masked_value_array=[-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 0.7598040968345164 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --] -- Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Any progress on binary installer for OSX?
In article CAH6Pt5q=z_macay-dgroz38jimo6uclv+amxkxhvt+qoe+c...@mail.gmail.com, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Thu, Oct 3, 2013 at 5:59 AM, Michael Droettboom md...@stsci.edu wrote: Matthew Terry, as part of his Mac testing project, has done a great deal of reconnaissance on this. https://github.com/matplotlib/mpl_mac_testing I know he was looking into statically linking some of the C dependencies (freetype, libpng etc.) as a way to make the installer more robust to different environments. Thanks - that looks like a useful testing grid. Are there any near-term plans for something like a .dmg or .mpkg or .pkg installer? Building a binary installer with statically linked libraries is not terribly hard (see http://www.astro.washington.edu/users/rowen/BuildingMatplotlibForMac.htm l). There are two problem: - As of 1.3.0 mpl does not include python-dateutil, pytz or six (for good reasons) and that makes it harder to make a really usable binary installer. This interacts with the next problem: - For unknown reasons running the 1.3.0 installer breaks existing installations of python-dateutil if those packages were installed using an older mpl binary installer. The missing packages can be added to the binary installer after it is produced by bdist_mpkg by post-processing the mpkg. That would take care of the second issue for most users (who would use the default installation and get everything). I have not had time to deal with that. Thus I never uploaded an official binary installer for 1.3.0 and stopped providing them. Matthew Terry has taken over that task. I did put an unofficial binary installer for 1.3.0 here: http://www.astro.washington.edu/users/rowen/python/ just be prepared to reinstall python-dateutil after you use it. -- Russell -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] building matplotlib 1.3 on OS X 10.8.4
In article e9448807-9b39-4ea8-a7b0-3f352ad2e...@gmail.com, James Boyle jsboyle...@gmail.com wrote: I built MPL 1.3 from source, all seem to go OK but I ran into the problem of not finding libfreetype.6.dylib when importing. Hmmm, it works for me. (I tried it again, just now). Here is what I did: * Make sure you have XQuartz installed. I have 2.7.4 which I got from Apple. * Edit setupext.py. Change this line: 'darwin': ['/usr/local/', '/usr', '/usr/X11', '/opt/local'], to: 'darwin': ['/usr', '/usr/X11'], to avoid any conflicts with any extra software you might have installed. * Copy setup.cfg.template to setup.cfg to change: #backend = TkAgg to: backend = TkAgg * python setup.py build * python setup.py install I found this resulted in a matplotlib I could use just fine on 10.8. (It won't work on 10.6 because the X11 libraries are in the wrong place). -- Russell -- Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Mac binary installer for Python 3 delayed
It turns out I won't be able to make a Mac binary installer for matplotlib anytime soon. I use bdist_mpkg to make the Mac binary installers for MacOS X, and the current release of bdist_mpkg (4.4) is not compatible with Python 3. I don't know how to make binary installers without bdist_mpkg, though I'm sure it can be done. Also note that there are no numpy binary installers for MacOS X python 3. This *may* be due to the same issue. Fortunately, it is very easy to install matplotlib from source (much easier than it used to be, thanks to patching setupext.py for darwin). -- Russell -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Why is pip not mentioned in the Installation Documentation?
In article 955a698f5edf4fbb9168429b718f5...@gmail.com, Ludwig Schwardt ludwig.schwa...@gmail.com wrote: Pip works beautifully on the Mac since Lion, once you install pkg-config. This allows matplotlib to pick up the dependencies from the system (i.e. libpng, libfreetype and zlib) I had not heard of pkg-config before. It looks very useful. ... [1] For me the only downside of the installer is the use of Python.org Python instead of the default system Python, as the latter makes more sense to me for a standard installation (and avoids having multiple Pythons on your system, which is a Good Thing). Python.org Python used to be a mandatory install on older Mac systems such as Tiger / 10.3, but this is no longer a compelling argument for me on newer systems. Simplicity is nice, and it's a shame there are so many 3rd party versions of python now (python.org, Enthought, ActiveState). Nonetheless, there are some good reasons for avoiding system python, including: - Apple rarely updates system python, so one does not get bug fixes - If the operating system uses python for anything then it's safest to leave it alone Regards, -- Russell -- 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
Re: [Matplotlib-users] Why is pip not mentioned in the Installation Documentation?
In article 50a61b5b.1090...@ed.ac.uk, Mathew Topper mathew.top...@ed.ac.uk wrote: Hi, I'm interested to know why the pip package manager is not more widely supported for installation of python packages like matplotlib? Matplotlib seems to be particularly slowly updated in the Fedora repositories, for example, so I often find that a source installation is necessary. I know this isn't especially difficult for the experienced user, but surely using something like pip would make this process for accessible for all users of python packages, particularly those that do not receive much attention from the big distribution maintainers? Yet, pip doesn't get a mention on the installation documentation of matplotlib or many other python packs. I would love to hear anyone's thoughts on this matter. Unfortunately pip cannot install binaries, so any user that tried to install matplotlib using pip would have to have a C compiler. Unfortunately many users do not have a compiler on MacOS and Windows. In addition, matplotlib has some important dependencies that may not be available on all systems. MacOS now includes all necessary libraries. I don't think that is true for most flavors linux (though there is probably an easy way to get all missing packages). I have no idea about Windows. I agree pip should be mentioned, but I don't see it as a viable mainstream means of installing matplotlib. (Does it even work with matplotlib? I've never tried it.) -- Russell -- 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
Re: [Matplotlib-users] matplotlib 1.2.0 (OS X 10.6 binary) requires System Python 2.7
In article CAJSg89LEe=hcxth+r+kcuqxg7-evzrpgehy+p8zesp5vfsw...@mail.gmail.com, Alexey Shamrin sham...@gmail.com wrote: Thank you for 1.2.0 release! Could you please make it clear that matplotlib requires python.org-Python sourceforge.net-NumPy? Telling about it during installation would be great. This is described in three places: - The description of the file on the download page - The name of the file on the download page - The ReadMe file in the binary installer Note that the official binary installers for numpy and scipy are also for python.org python, and as far as I know they do no more than the matplotlib installer as far as informing the user of this fact. It is bdist_mpkg that makes these installers, and it could be better about checking compatibility. But that is a known issue. I don't know about messages about system python, though that vaguely rings a bell as a bdist_mpkg issue. I'll add information about numpy to the ReadMe for future binary installers. Aside from that, I believe I've done everything I reasonably can to clarify the requirements for the binary installer. -- Russell -- 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
Re: [Matplotlib-users] installing matplotlib on mac os X with the *.dmg file
In article 5b7d5731-75a1-4a27-8864-c973259cf...@neuro.uni-bremen.de, Felix Patzelt fe...@neuro.uni-bremen.de wrote: The dmg you are referring to appears to install to /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (The main library, not the one for in our user directory). Most likely, this directory is not in pythons search path. python.org python installs into /Library/Frameworks/Python.framework and its main site-packages directory is the line listed above. That is where *all* packages get installed by default (e.g. by distutils or pip). I suspect the original poster has a conflict with another version of python or another package management system such as homebrew. You can verify which python is running using which python (it should be /usr/local/bin/python, which is a symlink to a binary in /Library/Frameworks/Python.framework, or the actual binary itself, depending on your $PATH. One can test matplotlib using: python -c import matplotlib as m ; m.test(verbosity=1) If that works then I suspect ipython is misinstalled. -- Russell -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib for Mac OS 10.7 (Lion)
In article caat3jwfkzo7rericnowkwgqfh-7dmqobooz92wbf6ork8oa...@mail.gmail.com, C M cmpyt...@gmail.com wrote: Trying to help a Mac friend running OSX 10.7 (Lion) easily set up to test scripts I send him, and have some questions: 1) Can Matplotlib 1.1 run on the Python 2.7.2 version that comes with Lion? Yes. You can easily build it yoursef as long as you have XCode installed: - Edit setupext.py so that the list of values for darwin is ['/usr/local', '/usr', /usr/X11'] (and for a really vanilla build leave out /usr/local). (I have a pull request for this to be part of the standard distro, but I don't know if or when it will go in since not a big issue.) Then do the usual: % python setup.py build % sudo python setup.py install Where are you getting matplotlib 1.1 for Mac OSX 10.7 from to build it? 1.1.0 is the current release. I downloaded the unix tarball. 2) When is there expected to be an installer for Matplotlib 1.1 for OSX 10.7? There is one, but like all the matplotlib (and numpy and scipy) official binaries it uses python.org's python, not Apple's. To go this route install python.org's Python 2.7.2 for 10.6-and-later (which is 64-bit) and then install the official numpy and matpotlib binaries. From where? I didn't see it. I am talking about having a binary installer on the Matplotlib downloads page,,. the last one I see there is this, which is for OSX-10.6: matplotlib-1.1.0-py2.7-python.org-macosx10.6.dmg2012-02-15 That is the one. 10.6 means 10.6 and later. It is build for python.org's Mac binary installer for 10.6 and later, which works just fine on Lion. -- Russell -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib for Mac OS 10.7 (Lion)
In article caat3jwe2fozn2fnolb677kjqre-pzj+zlhwxoe7-vkbfvko...@mail.gmail.com, C M cmpyt...@gmail.com wrote: Trying to help a Mac friend running OSX 10.7 (Lion) easily set up to test scripts I send him, and have some questions: 1) Can Matplotlib 1.1 run on the Python 2.7.2 version that comes with Lion? Yes. You can easily build it yoursef as long as you have XCode installed: - Edit setupext.py so that the list of values for darwin is ['/usr/local', '/usr', /usr/X11'] (and for a really vanilla build leave out /usr/local). (I have a pull request for this to be part of the standard distro, but I don't know if or when it will go in since not a big issue.) Then do the usual: % python setup.py build % sudo python setup.py install 2) When is there expected to be an installer for Matplotlib 1.1 for OSX 10.7? There is one, but like all the matplotlib (and numpy and scipy) official binaries it uses python.org's python, not Apple's. To go this route install python.org's Python 2.7.2 for 10.6-and-later (which is 64-bit) and then install the official numpy and matpotlib binaries. (It is a bit of a hassle to have to install a different python, but it has the advantage that you can freely upgrade python itself and packages without fear of breaking anything in the operating system.) There are lots of other options: Enthought has a python installer that includes lots of useful scientific packages. ActiveState has an installer with a lot of packages available (though last I checked matplotlib was out of date, which quite surprised me). MacPorts and competing package managers make it easy to install packages. Regards, -- Russell -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Having trouble installing matplotlib on Mac OS X Lion
In article ca65b53a.23941%wccarith...@lbl.gov, Bill Carithers wccarith...@lbl.gov wrote: Hi all, I had matplotlib-0.99.1.1 working with Python 2.6 on OS X v10.6(Snow Leopard). Today I upgraded to Lion (v10.7) and matplotlib had disappeared. Lion ships with Apple¹s version of Python 2.7. Even when I look back at Python 2.6 in the /System/Library/Frameworks/Python/Version/Python2.6, it seems to be gone. OK, I thought I would install matplotlib-1.0.1 in Python 2.7 using easy_install. It failed when unable to find the headers for numpy (terminal output below). Lion comes with numpy 1.5.1 pre-installed. I tried re-installing numpy but that didn¹t help so now I¹m stuck. Any suggestions? I personally would not try to mess with Apple's python. It's safer to leave it alone, and it is not upgrade very often. My personal favorite option: - install python.org's python - install the official binary installers for numpy and matplotlib (both of which assume python.org's python) You can use other standard distributions of Python including: - fink - MacPorts - Enthought's python distribution most or all of these come with their own versions of numpy and matplotlib (though in the case of fink and MacPorts you have to explicitly install them). -- Russell -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Question(s) for new MAC 10.7 User
In article rowen-a1b6dd.12441428022...@news.gmane.org, Russell E. Owen ro...@uw.edu wrote: In article CACM7dVw_Lde1QDS4vRvi-zTit8gqFYgYuyRLakOqBy0AVii7oA-JsoAwUIsXosN+BqQ9rBEUg@pu blic.gmane.org, William Jennings willim...@gmail.com wrote: Hello mat plot lib users! I feel quite embarrassed that I've gone through 2 days of trying to get to get numpy, scipy and matplotlib all to work nice with each other. I've scraped through forums, stackoverflow and all the links that can bide me some type of logic. Yet, alas I still fail wildly with this set of errors: *my current status is: just did a fresh install of my lion os and haven't installed Xcode yet. I'm a little lost and have found only macports, homebrew guides online only to be a slower failure. I really need to use this software but I'm finding it difficult keeping straight what order and what I need to install. I recommend: - Install python.org 64-bit Python 2.7 (the one labelled as being for MacOS X 10.6 and later) - Install numpy, scipy and matplotlib Mac binary with macosx10.6 in their names. These are available from the web sites maintained by those projects. Or if you want better backward compatibility (e.g. if you plan to distribute applications) then instead you should use the 32-bit python.org python (marked as for MacOS X 10.3 and later) and the numpy, scipy and matplotlib Mac binary installers with macosx10.3 in their names. This sort of thing comes up often enough that I've posted a web page on the topic, including reasons you might want to choose 32-bit or 64-bit: http://www.astro.washington.edu/users/rowen/MacBinaryPythonPackageInstal lers.html -- Russell -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Question(s) for new MAC 10.7 User
In article cacm7dvw_lde1qds4vrvi-ztit8gqfygyuyrlakoqby0avii...@mail.gmail.com, William Jennings willim...@gmail.com wrote: Hello mat plot lib users! I feel quite embarrassed that I've gone through 2 days of trying to get to get numpy, scipy and matplotlib all to work nice with each other. I've scraped through forums, stackoverflow and all the links that can bide me some type of logic. Yet, alas I still fail wildly with this set of errors: *my current status is: just did a fresh install of my lion os and haven't installed Xcode yet. I'm a little lost and have found only macports, homebrew guides online only to be a slower failure. I really need to use this software but I'm finding it difficult keeping straight what order and what I need to install. I recommend: - Install python.org 64-bit Python 2.7 (the one labelled as being for MacOS X 10.6 and later) - Install numpy, scipy and matplotlib Mac binary with macosx10.6 in their names. These are available from the web sites maintained by those projects. Or if you want better backward compatibility (e.g. if you plan to distribute applications) then instead you should use the 32-bit python.org python (marked as for MacOS X 10.3 and later) and the numpy, scipy and matplotlib Mac binary installers with macosx10.3 in their names. -- Russell -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib install on mac osx 10.6.8
In article loom.20120215t014809-...@post.gmane.org, 7stud 7s...@excite.com wrote: Since my op, I also tried to download: matplotlib-1.1.0.tar.gz and I got a Decompression Failed message in the Downloads window. I checked my Safari settings, and Safari is set to automatically decompress 'safe' files. guess it couldn't in the case of matplotlib. Next, I tried decompressing and untaring myself: ... So it seems to me like the tar.gz file at sourceforge is corrupted. Very odd. I'm on MacOS X 10.6.8 and I am able to download it and uncompress it just fine. I double click it and BOM helper handles it just fine. You might try reinstalling your operating system from a combo updater, or try BetterZip (which I own so I can easily make .zip and .tgz files with no Mac-specific content). -- Russell -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] 64-bit matplotlib 1.1.0 installer available
In article loom.20120215t021422-...@post.gmane.org, 7stud 7s...@excite.com wrote: Russell E. Owen rowen@... writes: I just created a binary installer for python.org's 64-bit Python 2.7 (MacOS X 10.6 and later). I'd like a few folks to test it to make sure it works for more than just me, before serving it at the usual location. I can report that your installer has enabled me to successfully execute the following two progams:... Thank you for testing it. I have uploaded the installer to sourceforge. -- Russell -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib install on mac osx 10.6.8
In article 20120213223549.21...@web007.roc2.bluetie.com, Full Name 7s...@excite.com wrote: Hello, Mac OSX 10.6.8 matplotlib 1.1.0 From the matplotlib website: = Installing OSX binaries If you want to install matplotlib from one of the binary installers we build, you have two choices: a mpkg installer, which is a typical Installer.app, or a binary OSX egg, which you can install via setuptoolsâ easy_install. The mkpg installer will have a âzipâ extension, and will have a name like matplotlib-0.99.0.rc1-py2.5-macosx10.5_mpkg.zip. == Where are those files? I can't find them anywhere. Also from the matplotlib website: === You can also use the eggs we build for OSX (see the installation instructions for easy_install if you do not have it on your system already). You can try: easy_install matplotlib which should grab the latest egg from the sourceforge site, but sometimes the naming conventions for OSX eggs can be broken (see below). Therefore, there is no guarantee the right egg will be found. We recommend you download the latest egg from our download site directly to your harddrive, and manually install it, eg: easy_install --install-dir=~/dev/lib/python2.5/site-packages/ matplotlib-0.99.0.rc1-py2.5-macosx-10.5-i386.egg === Where are those eggs? I can't find them anywhere. On the home page of the matplotlib website, on the right hand side, is a link downloads, which took me here: http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/ There isn't anything later than osx 10.3 there, and there are no egg files at all. Yet the install directions mention osx10.5. I installed python 2.7, which automatically installed an interpreter named python2.7, because the Numpy installer I found was for python 2.7 and mac osx 10.6. I installed this for matplotlib: matplotlib-1.1.0-py2.7-python.org-macosx10.3.dmg ... There are no Mac eggs for the current version of matplotlib. The references to them are obsolete. The file you found is the only option for MacOS X (presently). It requires python.org's 32-bit Python 2.7, which is for MacOS X 10.3.9 and later. I just built an installer for python.org's 64-bit Python 2.7, which requires MacOS X 10.6 and after a bit of testing I'll serve that. -- Russell -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] 64-bit matplotlib 1.1.0 installer available
I just created a binary installer for python.org's 64-bit Python 2.7 (MacOS X 10.6 and later). I'd like a few folks to test it to make sure it works for more than just me, before serving it at the usual location. The temporary link is: http://www.astro.washington.edu/users/rowen/python/matplotlib-1.1.0-py2. 7-python.org-macosx10.6.dmg Thanks to Ned Deily for providing the fix. It turned out to be a known bug in XCode 3.2.6 -- an incorrect symlink -- as described here (including the fix): https://discussions.apple.com/message/13314424?messageID=13314424 once I fixed that the normal matplotlib build worked perfectly after editing setupext.py to set: 'darwin': ['/usr/local', '/usr/', '/usr/X11'], I recommend that as the default value in future releases of matplotlib because: - It works if using python.org python or Apple's Python - If one is using macports or other such package managers then matplotlib is probably already available -- folks are less likely to build from source. -- Russell -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Matplotlib show() error Mac OS X Lion
In article 1320891765.14646.yahoomailclas...@web161202.mail.bf1.yahoo.com, Michiel de Hoon mjldeh...@yahoo.com wrote: --- On Wed, 11/9/11, Russell E. Owen ro...@uw.edu wrote: There is no matplotlib binary for 64-bit Python yet because I've not figured out how to build one successfully -- I get horrible conflicts with Tcl/Tk. Would it be possible to release a matplotlib binary for 64-bit Python using the MacOSX backend instead of tkagg? It's not hard to build your own 64-bit matplotlib on 10.6 (and I assume the instructions are the same on 10.7, but perhaps not). The prerequisite libraries are already present. Just make sure you have the following installed: - XCode with gcc 4.2 as the default compiler (one way to change the default is using a pair of symlinks in /usr/bin or /usr/local/bin -- one for gcc, one for g++) - Python.org's 64-bit python installed and preferably running as the default. Download and unpack the matplotlib source. Edit setupext.py and change the entry for darwin to include those two directories: /usr/X11 and /usr/lib. Then copy setup.cfg.template to setup.cfg and edit setup.cfg to enable the backends you want. Be sure to disable TkAgg because it won't build properly. Then build in the usual way: python setup.py build python setup.py install I personally don't think the matplotlib project should serve such a product unless and until somebody has time to deal with the Tk linking issues, which apparently require editing some resulting libraries (more than I want to attempt). But that's just my opinion. -- Russell -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Matplotlib show() error Mac OS X Lion
In article 629e8f74-c832-4500-9768-8af5fb39d...@pik-potsdam.de, Bedartha Goswami gosw...@pik-potsdam.de wrote: Hi, I have recently installed Python 32/64bit from Python.org and then I proceeded to install bumpy, scipy, matplotlib and igraph on it. But the Matplotlib does not show the plots even if it opens a Figure window. Here is a summary of what I had done in my installation: - I first did a clean install by following the instructions at (with an idea to reinstall Matplotlib and see if the rror repeats): http://matplotlib.sourceforge.net/faq/installing_faq.html#clean-install - So now my python does not have matplotlib: Bedarthas-MacBook-Air:~ bedartha$ cd ~/Desktop/ Bedarthas-MacBook-Air:Desktop bedartha$ python Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or license for more information. import matplotlib Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named matplotlib Bedarthas-MacBook-Air:Desktop bedartha$ - Then I downloaded (again) the DMG file at: http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/m atplotlib-1.1.0-py2.7-python.org-macosx10.3.dmg/download - and installed Matplotlib (which seems to go through fine). But after that: Bedarthas-MacBook-Air:~ bedartha$ cd ~/Desktop/ Bedarthas-MacBook-Air:Desktop bedartha$ python Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin I suspect you are trying to install matplotlib on the 64-bit Python instead of the 32-bit python for which it was built I say this because 32-bit python is built using GCC 4.0.1. There is no matplotlib binary for 64-bit Python yet because I've not figured out how to build one successfully -- I get horrible conflicts with Tcl/Tk. -- Russell -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Problem building 64-bit matplotlib for MacOS X 10.6
I was hoping to build a matplotlib binary installer for python.org's 64-bit Python (MacOS X 10.6 and later). But I've run into problems that make me think python.org's python is not fully compatible with ActiveState Tcl/Tk. Here's what I have: MacOS X 10.6.8 Python: python-2.7.2-macosx10.6.dmg Tcl/TK: ActiveTcl8.5.10.1.295062-macosx10.5-i386-x86_64-threaded.dmg XCode 3.2.6 matplotlib 1.1.0 I edited setupext.py in the matplotlib source directory to set darwin to: 'darwin' : ['/usr', '/usr/X11'], The idea was to use only Apple's own libraries for the dependencies. I did not install wxPython because, as I understand it, there is no 64-bit version. matplotlib seems to build OK (see appended log) though there are disturbing messages such as these: i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused because linking not done i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because linking not done I can import and run Tkinter, though I've not done anything beyond putting up a root window. But when I try to import pylab I get: objc[1083]: Class TKApplication is implemented in both /Library/Frameworks/Tk.framework/Versions/8.5/Tk and /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined. objc[1083]: Class TKMenu is implemented in both /Library/Frameworks/Tk.framework/Versions/8.5/Tk and /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined. objc[1083]: Class TKContentView is implemented in both /Library/Frameworks/Tk.framework/Versions/8.5/Tk and /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined. objc[1083]: Class TKWindow is implemented in both /Library/Frameworks/Tk.framework/Versions/8.5/Tk and /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined. Any idea how to deal with this? I've never seen this before and google was no help. Others have seen this problem but I saw no solution. -- Russell P.S. partial log of build (not install) of matplotlib: BUILDING MATPLOTLIB matplotlib: 1.1.0 python: 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] platform: darwin REQUIRED DEPENDENCIES numpy: 1.6.1 freetype2: found, but unknown version (no pkg-config) OPTIONAL BACKEND DEPENDENCIES libpng: found, but unknown version (no pkg-config) Tkinter: Tkinter: version not identified, Tk: 8.5, Tcl: 8.5 Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to import gtk in your build/install environment Mac OS X native: yes Qt: no Qt4: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: matplotlib will provide pytz: matplotlib will provide adding pytz OPTIONAL USETEX DEPENDENCIES dvipng: no ghostscript: /bin/sh: gs: command not found latex: no [Edit setup.cfg to suppress the above messages] = === pymods ['pylab'] packages ['matplotlib', 'matplotlib.backends', 'matplotlib.backends.qt4_editor', 'matplotlib.projections', 'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1', 'mpl_toolkits.axisartist', 'matplotlib.sphinxext', 'matplotlib.tri', 'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil.zoneinfo'] running build running build_py ... gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders -I/Library/Frameworks/Tk.framework/Headers -I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders -I/usr/include -I/usr/X11/include -I. -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa ckages/numpy/core/include -Isrc -Iagg24/include -I. -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa ckages/numpy/core/include -I/usr/include -I/usr/X11/include -I. -I/Library/Frameworks/Tcl.framework/Headers/freetype2 -I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders/freet ype2 -I/Library/Frameworks/Tk.framework/Headers/freetype2 -I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders/freety pe2 -I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I./freetype2
[Matplotlib-users] Legend for stacked histogram?
I am trying to make a legend for a stacked histogram using matplotlib 1.0.1 and it's not working. Here's what I've tried so far: count, bins, ignored = pyplot.hist( (matchedStarPsfMags, unmatchedRefStarPsfMags, unmatchedSourcePsfMags), bins=30, histtype='barstacked', normed=True) pyplot.legend((matched stars, unmatched stars, \ false detections), loc='upper left') This produces a nice stacked histogram with red, green and blue. Unfortunately the legend is blue for all three entries, so the legend is useless! I figured I could label the data instead. The documentation for hist says: label: String, or sequence of strings to match multiple datasets. Bar charts yield multiple patches per dataset, but only the first gets the label, so that the legend command will work as expected: That last sentence sounded really ominous in this context, but I figured I would try it anyway. Unfortunately this code fails: count, bins, ignored = pyplot.hist( (matchedStarPsfMags, unmatchedRefStarPsfMags, unmatchedSourcePsfMags), label = (matched stars, unmatched stars, false detections), bins=30, histtype='barstacked', normed=True) pyplot.legend(loc='upper left') with this error: Traceback (most recent call last): File bin/measDepth.py, line 291, in module pyplot.legend(loc='upper left') File /lsst/DC3/stacks/gcc443/15oct2010/Linux64/external/matplotlib/0.98.5.2+1 /lib/python/matplotlib/pyplot.py, line 2441, in legend ret = gca().legend(*args, **kwargs) File /lsst/DC3/stacks/gcc443/15oct2010/Linux64/external/matplotlib/0.98.5.2+1 /lib/python/matplotlib/axes.py, line 3777, in legend label != '' and not label.startswith('_')): AttributeError: 'tuple' object has no attribute 'startswith' In other words the documentation appears to be incorrect that a sequence of strings is acceptable. Any suggestions? -- Russell -- 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-d2d-c2 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Legend for stacked histogram?
In article rowen-3539bf.13542730062...@news.gmane.org, Russell E. Owen ro...@uw.edu wrote: I am trying to make a legend for a stacked histogram using matplotlib 1.0.1 and it's not working. Here's what I've tried so far: count, bins, ignored = pyplot.hist( (matchedStarPsfMags, unmatchedRefStarPsfMags, unmatchedSourcePsfMags), bins=30, histtype='barstacked', normed=True) pyplot.legend((matched stars, unmatched stars, \ false detections), loc='upper left') This produces a nice stacked histogram with red, green and blue. Unfortunately the legend is blue for all three entries, so the legend is useless! I figured I could label the data instead. The documentation for hist says: label: String, or sequence of strings to match multiple datasets. Bar charts yield multiple patches per dataset, but only the first gets the label, so that the legend command will work as expected: That last sentence sounded really ominous in this context, but I figured I would try it anyway. Unfortunately this code fails: count, bins, ignored = pyplot.hist( (matchedStarPsfMags, unmatchedRefStarPsfMags, unmatchedSourcePsfMags), label = (matched stars, unmatched stars, false detections), bins=30, histtype='barstacked', normed=True) pyplot.legend(loc='upper left') with this error: Traceback (most recent call last): File bin/measDepth.py, line 291, in module pyplot.legend(loc='upper left') File /lsst/DC3/stacks/gcc443/15oct2010/Linux64/external/matplotlib/0.98.5.2+1 /lib/python/matplotlib/pyplot.py, line 2441, in legend ret = gca().legend(*args, **kwargs) File /lsst/DC3/stacks/gcc443/15oct2010/Linux64/external/matplotlib/0.98.5.2+1 /lib/python/matplotlib/axes.py, line 3777, in legend label != '' and not label.startswith('_')): AttributeError: 'tuple' object has no attribute 'startswith' In other words the documentation appears to be incorrect that a sequence of strings is acceptable. Any suggestions? Oops. I was able to answer my own question. It turns out I was using an ancient version of matplotlib (0.98.5.2) (I was using a remote server and forgot to check). The second version does work with matplotlib 1.0.1 and produces a nice legend with the correct color for each entry. Yaay! The first version produces a useless legend with all colors the same on both modern matplotlib and the ancient matplotlib. So use the second method of specifying label=(...) in the hist command. -- Russell -- 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-d2d-c2 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] installation problem on Mac
In article BANLkTi=bj2vgaycqwclk+ksz_qeqm-4...@mail.gmail.com, Rebecca Gray atlas...@gmail.com wrote: I am trying to install matplotlib on my Mac OS X 10.6.6. I currently have Python 2.7.2 installed. I tried installing ***matplotlib-1.0.1-python.org-32bit-py2.7-macosx10.3.dmg. The installation appears to run fine, but when I try to import pylab * I am getting the following error message: from numpy import * import pylab ... ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa ckages/matplotlib/_path.so, 2): no suitable image found. Did find: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ matplotlib/_path.so: no matching architecture in universal wrapper I am new to Python and any help would be greatly appreciated. Thanks, Rebecca Which Python 2.7.2 are you using? The matplotlib installer is only compatible with the 32-bit version from python.org and I suspect you are using the 64-bit version or some other distribution entirely. If you are definitely using the 32-bit python.org version then could you please execute the file command on _path.so? When I do that for mine I get: d-172-28-191-121:matplotlib rowen$ file _path.so _path.so: Mach-O universal binary with 2 architectures _path.so (for architecture ppc): Mach-O bundle ppc _path.so (for architecture i386): Mach-O bundle i386 -- Russell -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] mac osx 10.6 matplotlib installation error: lipo: can't open input file: /var/tmp//*.out
In article 26f19958-353a-471e-a1ee-db33f1207...@sydney.edu.au, Leslie Burnett leslie.burn...@sydney.edu.au wrote: Pathways leading to the error message: I obtained Matplotlib from the matplotlib home page download link to sourceforge a) mpkg/dmg installation 1.0.1-r0 fails with message can't be installed on this disk. matplotlib requires System Python 2.6 to install The mpkg/dmg installer requires python from python.org, not Apple's built-in python (despite the incorrect error message). The README that is displayed by the installer does explain this, but it is easy to miss. Note that the incorrect error message is a known bug in the software that creates mpkg installers. I suggest you use the binary installer because building from source is rather a lot of work, due to the need to install dependencies. -- Russell -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Adding 2 Line2D objects to a Subplot
In article 4d0f8efd.3010...@gmail.com, Jose Guzman sjm.guz...@googlemail.com wrote: Hi everybody I wanted to collect a combination of plots to insert then in a subplot. I choose to create Line2D objects to use the .add_line() method of the AxesSubplot class, but unfortunately this does lead to the desired results. ... Is the appended closer to what you had in mind? -- Russell from matplotlib.lines import Line2D from matplotlib.pyplot import figure, show import numpy as np def subplot_foo(n): returns a the combination of 2 Line2D instances x = np.arange(0, 200, 0.1) y = np.random.randn(len(x)) print len(x) y2 = y+n line1 = Line2D(x, y, color = 'k') line2 = Line2D(x, y2, color = 'r') return line1, line2 fig = figure() # create Figure object for i in range(1,5): ax = fig.add_subplot(2,2,i) subplots = subplot_foo(i) for subplot in subplots: ax.add_line(subplot) show() -- Forrester recently released a report on the Return on Investment (ROI) of Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even within 7 months. Over 3 million businesses have gone Google with Google Apps: an online email calendar, and document program that's accessible from your browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Updating tick labels on animated plot
In article aanlktik=w70xo5y6iooq4qsszy0tp4rjhmzeqsreo...@mail.gmail.com, Søren Nielsen soren.skou.niel...@gmail.com wrote: Hi, I have an animated plot and I'm having trouble updating the tick labels after I blit new data to the canvas. I've looked through the documentation and it's not clear to me how I can update the x and y axis ticks during an animation. Anyone here know how to do this? I am not an expert but... The only way I know to update the tick labels and such is to call the draw() method on your canvas. if you have to update the tick labels nearly as often as you add data then you probably should not bother with the animation API. Just update the data and then call canvas.draw() to update both the data and the axis ticks. Regards, -- Russell -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] memory leak caused by canvas.draw()
I explored the memory leak in my strip chart widget some more and found that it is caused by calling canvas.draw(), where canvas is: figure = matplotlib.figure.Figure(figsize=(8, 2), frameon=True) canvas = FigureCanvasTkAgg(figure, self) canvas.show() exhibits exactly the same problem. So...what is the right way to redraw a plot after its X axes have been changed? -- Russell -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Bus error on import - Mac OS X (10.5.8) Matplotlib 1.0.0
In article 4cfd8253.5060...@hms.harvard.edu, Kaushik Ghose kaushik_gh...@hms.harvard.edu wrote: Hi Guys, I did a search on the mailing list but could not come up with a solution, so I am crying Uncle and writing. I installed matplotlib 1.0.0 from the package on SF (http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0/ma tplotlib-1.0.0-python.org-py2.6-macosx10.4.dmg/download) I assumed that 10.4 would work on my 10.5 - perhaps that is where I went wrong? I installed it and got, satisfactorily: import matplotlib matplotlib.__version__ --- '1.0.0' But when I do import pylab I get a bus error that throws me out of ipython. It should work on Mac OS X 10.4. A newer version of this binary is available here, which I recommend instead: http://www.astro.washington.edu/users/rowen/python/ A few things to try: - Make sure you have Python 2.6 from python.org - Make sure you have a good numpy build, preferably of 1.5 or 1.5.1 - matplotlib 1.0.0 will crash if it has a problem with the font cache (though I don't think that is what caused your crash); to fix that delete the font cache in the ~/.matplotlib directory. That problem should be fixed in 1.0.1. -- Russell -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Memory leak; user error or bug?
I'm seeing a nasty memory leak in my strip chart widget using matplotlib 1.0, TkAgg and Mac OS X 10.5 I've posted a minimal version here: http://www.astro.washington.edu/users/rowen/python/MinimalStripChartWdg. py It doesn't seem to matter if I use the animation API or not (the example does not). Any ideas? If this is a bug I'll report it, but I hope I'm just doing something wrong. -- Russell -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Memory leak; user error or bug?
In article 4cf69ba4.1000...@stsci.edu, Michael Droettboom md...@stsci.edu wrote: On 12/01/2010 01:40 PM, Russell E. Owen wrote: I'm seeing a nasty memory leak in my strip chart widget using matplotlib 1.0, TkAgg and Mac OS X 10.5 I've posted a minimal version here: http://www.astro.washington.edu/users/rowen/python/MinimalStripChartWdg. py It doesn't seem to matter if I use the animation API or not (the example does not). Any ideas? If this is a bug I'll report it, but I hope I'm just doing something wrong. I don't have a Mac to try this on -- however, I don't see the leak on Fedora 14/Python 2.7/Numpy 1.5.1/Tkinter with both matplotlib 1.0 and matplotlib SVN head. That may narrow it down to something Mac OS X-specific. Sorry that's not totally helpful, but it's a data point. Thank you; that is very helpful. Unfortunately that suggests it is Mac-specific or Tcl/Tk-version-specific which could make it hard to track down. I'll report it as a bug in any case. -- Russell -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Mac binary updated: bad file permission
The Mac installer for matplotlib that I recently announced had a bug: a file in dateutil had bad permissions. I think I've finally got that straightened out and there's a new installer here: http://www.astro.washington.edu/users/rowen/python/ My apologies for the error. -- Russell -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] New Mac binary installer for Python 2.6; do we bother with Python 2.5?
I finally got hold of a Mac that can run 10.4 and was finally able to build a new binary installer for Python 2.6 (as well as one for PIL 1.1.7) is truly compatible with Mac OS X 10.3.9. For now it is available here: http://www.astro.washington.edu/users/rowen/python/ though I hope it will end up on the official site at some point. I have not tested the wx back end and would be grateful if somebody had time to do so. I attempted to build a binary installer for Python 2.5.x but ran into problems: Mac binaries for Python 2.5 aren't compatible with 3rd party versions of Tk, which causes a mess for matplotlib. There are workarounds, but given the state of Mac python 2.5 I'm not sure it's worth the bother. I propose not having a matplotlib binary installer for Python 2.5 and getting a pair for Python 2.7 32-bit (10.3.9 and later) and 64-bit (10.5 and later). What do others think? -- Russell -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] strip chart: thanks for your help
In article rowen-467156.12085929092...@news.gmane.org, Russell E. Owen ro...@uw.edu wrote: I finished my strip chart widget thanks to help from Tony S Yu, Benjamin Root and others here. It supports multiple subplots and multiple lines/subplot. Here's a copy if anyone is interested: http://www.astro.washington.edu/users/rowen/python/StripChartWdg.py I plan to add it to the RO python package once I have tested it a bit more. Meanwhile, the example code at the end uses a prerelease RO module that I've also uploaded: http://www.astro.washington.edu/users/rowen/python/RandomWalk.py It uses the TkAgg back end, but is easily ported (as usual, event timing is the main issue; I wish Python had its own event model that all GUIs could use). I think I finally got the animation API figured out well enough to produce a robust result. Strip charts are intrinsically poor candidates for the animation API because the time axis is constantly shifting, but nonetheless animation does produce a small reduction in CPU usage. Any feedback would be most welcome. Regards, -- Russell Now released in RO 2.6.0 as RO/Wdg/StripChartWdg.py http://pypi.python.org/pypi/RO/2.6.0 -- Russell -- Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achieve? Read this whitepaper to separate the two and get a better understanding. http://p.sf.net/sfu/hp-phase2-d2d ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] autoscale when adding data to a Line2D?
In article 4ca0549d.3060...@hawaii.edu, Eric Firing efir...@hawaii.edu wrote: On 09/26/2010 09:43 PM, Fernando Perez wrote: Mmh, On Sun, Sep 26, 2010 at 10:56 PM, Jae-Joon Leelee.j.j...@gmail.com wrote: Did you try autoscale_view method? http://matplotlib.sourceforge.net/api/axes_api.html?highlight=autoscale#mat plotlib.axes.Axes.autoscale_view Please post a sample script that reproduces the problem. I'm wondering if I'm doing something wrong then. Just now I was writing some notes about this for a tutorial, and tried this code: line, = plt.plot([1,2,3], label='my data') plt.grid() plt.title('My title') x = np.linspace(0, 1) y = x**2 line.set_data(x, y) ax = gca() ax.autoscale_view() plt.draw() but I get the result shown in the screenshot. Am I misusing autoscale_view? As best I can tell from the docstring, I'm making correct use of it, but perhaps I'm missing something... autoscale_view somewhat defeats the purpose of line.set_data, which is intentionally minimalist. If you want autoscaling after update, but don't want to simply clear and plot, then you need to explicitly update the Axes.dataLim. You can do this using Axes.relim() prior to calling autoscale_view(). Thank you. That is exactly what I needed. It looks like Axes.get_ybound() will return the min and max displayed y so whenever I add a point I can test if it is within those bounds; if it is not then I can call relim(). That should preserve the efficiency most of the time while still allowing autoscaling and avoiding my having to keep accurate track of what's going on. -- Russell -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Tying X axes information together in multiple subplots?
I'm making a set of plots (a strip chart) stacked on top of each other, all sharing the same X axis (time). So far it appears that to get the X axis of each Subplot to match I have to set its properties independently. Is there some way to tie them all together so that a user can set the properties of one and have it propagate? I'm particularly concerned about tick marks and the X grid lines; I only want to show tick labels on the bottom-most Subplot. I suppose one possibility is to create some kind of object on which I can call Subplot.xaxis methods and have it apply those changes to all the Subplots. Has anyone done this? -- Russell -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] another incorrectly clipped PNG in the gallery
In article aanlktinjbfo6zioh1j_w=0ut-xur0ck1y8fsaant1...@mail.gmail.com, John Hunter jdh2...@gmail.com wrote: On Wed, Sep 22, 2010 at 8:31 PM, C M cmpyt...@gmail.com wrote: Until a more permanent solution is figured out, can anyone recommend any workarounds, even if they are a little clunky? I'm embedding mpl plots in wxPython and am also finding this issue suboptimal. Change your subplots adjust parameters to make the default bottom, left, wspace and hspace wider. This will reduce the chance of overlaps. http://matplotlib.sourceforge.net/search.html?q=subplots_adjust The defaults can be changed in your rc file http://matplotlib.sourceforge.net/users/customizing.html See also these recipes on the FAQ to automatically choose boundaries http://matplotlib.sourceforge.net/faq/howto_faq.html#move-the-edge-of-an-axe s-to-make-room-for-tick-labels http://matplotlib.sourceforge.net/faq/howto_faq.html#automatically-make-room -for-tick-labels Automatic layout to avoid overlap is not an easy problem -- Michael Droetboom worked on it for a while but didn't get to a satisfactory point. So far our philosophy has been : make it easy to customize rather than do it automatically. I realize this is not always a good approach, especially in automated figure generators where you don't have access to the data ahead of time. One possibility is to offer a mode whereby the font size for the annotations is fixed. It is then much easier to figure out how large a particular annotation must be before laying out the graph. That ought to make it much easier to leave enough room for axis labels and such. Ideally in this mode the automatic layout would be improved so that axis labels were always visible. But even if that was a planned feature that was not initially implemented, having fixed font size would allow users to more easily lay things out as desired. -- Russell -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Tying X axes information together in multiple subplots?
In article aanlktintbfs8owjelhopxs9x6dxenwykzqfehvqr5...@mail.gmail.com, Benjamin Root ben.r...@ou.edu wrote: On Fri, Sep 24, 2010 at 12:30 PM, Russell E. Owen ro...@uw.edu wrote: I'm making a set of plots (a strip chart) stacked on top of each other, all sharing the same X axis (time). So far it appears that to get the X axis of each Subplot to match I have to set its properties independently. Is there some way to tie them all together so that a user can set the properties of one and have it propagate? I'm particularly concerned about tick marks and the X grid lines; I only want to show tick labels on the bottom-most Subplot. I suppose one possibility is to create some kind of object on which I can call Subplot.xaxis methods and have it apply those changes to all the Subplots. Has anyone done this? -- Russell Russel, maybe this example might help? http://matplotlib.sourceforge.net/examples/pylab_examples/shared_axis_demo.htm l There are also some more advanced subplot layout methods available called axis_grid1 in the mpl_toolkits. http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html I hope this helps! Ben Root Thank you. sharex was just what I was looking for. I was pleasantly surprised I could hide the x axis labels on the upper subplots using the following code: for subplot in self.subplotArr[0:-1]: # can't find API equivalent of pylab.setp so... for ticklabel in subplot.get_xticklabels(): ticklabel.set_visible(False) since it's a strip chart and new X ticks are constantly being created as time advances. Thank heavens it doesn't show labels on the new ones. I also tried axis_grid1 but was unable to get plots, and since the other technique is working and more backward-compatible I'm happy to stick to that. Regards, -- Russell -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] autoscale when adding data to a Line2D?
I'm implementing a strip chart class by setting the data in a Line2D (well, one or more Line2D instances tied to one or more Subplots). However, I find that when I do this I can't get the y axis to autoscale, even if I create the Line2Ds with animate=False. Am I overlooking something really basic? If not, any suggestions? Perhaps I should keep track of the y limits myself. That saves time when adding a new data point because I can compare it to cached limits (instead of scanning the whole data set). But it quickly gets messy if one handles nan correctly and matplotlib already does this so I was thinking matplotlib must have API code to help with this. But so far I've not figured it out from the docs (though matplotlib.ticker looks promising). -- Russell -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] another incorrectly clipped PNG in the gallery
In article 4c935c08.1000...@gmail.com, Alan G Isaac alan.is...@gmail.com wrote: http://matplotlib.sourceforge.net/examples/pylab_examples/accented_text.html It's realistic, and that has a lot to be said for it. One of my problems with matplotlib is that it is far too willing to truncate axis labels and related information. I'd be much happier with a layout model that always showed the axis labels in full. -- Russell -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Matplotlib 1.0.0 OS X Binaries for Python 2.7?
I don't think there is a release numpy that is compatible with Python 2.7 (though it is due shortly in the form of numpy 1.5) and matplotlib requires numpy. -- Russell In article aanlktikni4k5qkrzt=0amydsxjjy7ka4u5tmsnpfe...@mail.gmail.com, Åke Kullenberg ake.kullenb...@gmail.com wrote: I've seen some posts asking for the same thing, but there's been quite some time now. Does anyone know the progress? Should I wait, or just downgrade to 2.6 for now? Thanks - -- Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d - ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users I -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Hints on sizing plot elements?
I'm making a strip chart widget (which I plan to make publicly available when finished). The basics are working fine, but the automatic sizing is not doing so well. Strip charts are typically short, and when suitably short the X axis annotations are partially truncated. So...can I convince the automatic sizer to always show the full X (time) axis annotations and put all the variable sizing into the data area? Or do I have to manually set them somehow? Also, is there a way from my software (not a .matplotlibrc file) to globally make the default background color white for axis annotation areas? Right now the background is gray for annotations and while for plot area and I'd prefer it was all white. -- Russell -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Animation doc glitches
I'm trying to learn how to make a fairly efficient strip chart display and have run into a few glitches: The example strip_chart_demo.py is not annotated but does refer to a page http://www.scipy.org/wikis/topical_software/Animations Unfortunately that page does not exist. I suspect the desired page is: http://www.scipy.org/Cookbook/Matplotlib/Animations However, that page has its own issues: all the links to code that I have tried are broken, e.g.: anim.py = http://matplotlib.sf.net/examples/anim.py anim_tk.py = http://matplotlib.sf.net/examples/anim_tk.py etc. That page also says at one point: For backends that support the new API (GTKAgg) set useblit=True: and As noted above, only the GTKAgg supports the methods above to to the animations of selected actors. However, it earlier claims: As of matplotlib-0.87, GTKAgg, TkAgg, WXAgg, and FLTKAgg support the methods discussed here. If the first two quotes are needlessly restrictive then it would help to list the supported backends once and refer back to that if necessary. These are minor complains. Having found this page it looks pretty straightforward to do what I want (especially since my data rate is slow enough that I can skip the fancy bit blitting). One question: it appears that there is no way to append new data to the Line2D and occasionally flush the oldest data; instead I have to copy all data for every update. Is this so, or am I missing something? -- Russell -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Help Installing on Mac OS X
In article a94a7d96-b99a-44d7-b4af-ecc3aff84...@tufts.edu, Shir Livne shir.li...@tufts.edu wrote: Hi, I downloaded the files from the site, but when i type import matplotlib in python, it responds with ImportError: No module named matplotlib Does anyone mind going through the download steps for me? I probably forgot something simple. What file did you download? If it was a binary installer, then which python are you using (open a Terminal and type which python). You should see a path starting with /Library, NOT with /System/Library. If the path starts with /System/Library then that explains your problem: you are using the built-in python instead of the python from python.org (though the binary *may* work with other 3rd party pythons as well, e.g. Enthought or ActiveState). So, the steps are: - Download and install a suitable python from http://python.org (I recommend 2.6.x, but 2.5.x is also fine; we don't have a matplotlib binary for 2.7 yet because it is so new) - Download and install the matching matplotlib Mac binary (for Python 2.5 or 2.6). Regards, -- Russell -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Matplotlib 1.0 dateutils missing on MacOS X
In article 0d8c04e1-e841-4f18-9887-ea0a76090...@gmail.com, Edward Barnard edbarn...@gmail.com wrote: Hi All I had a problem installing matplotlib 1.0.0 on MacOS X 10.6 using python.org 2.6.5 with the binary installer (dmg). When importing pylab, datautils was missing. I fixed that by easy_installing python-dateutils, but it seems like it should be included in the installer or listed in the install requirements. Thanks for a great piece of software! -Ed -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first I built the installer without dateutil and pytz packages. At John Hunter's request I made new installers that do install these packages. I believe the new installers are now being served, so try downloading the installer and running it again. Beware: the new installer always installs the versions it has; if you have a newer pytz or dateutil you want to keep, reinstall it afterwards or move it out of site-packages during the matplotlib install. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib Mac binary that works with python.org python and older MacOS X?
In article 4c2d2041.3040...@noaa.gov, Christopher Barker chris.bar...@noaa.gov wrote: Russell E. Owen wrote: However, at present I don't know if there is a Python 2.6 that is both compatible with older versions of Mac OS X and is built with 64-bit support. FWIW, I think the official 2.7 builds will be Intel32+Intel64+PPC32 I don't know if Ronald is going to back=port any of that for 2.6, but I kind of doubt it. -Chris That sounds useful. Can bdist_mpkg handle Intel64? -- Russell -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib Mac binary that works with python.org python and older MacOS X?
In article rowen-466e37.16580630062...@news.gmane.org, Russell E. Owen ro...@uw.edu wrote: I'm trying to find a matplotlib 0.99.3 binary installer that works with the standard python.org Python (preferably 2.6) and hence works with Mac OS X 10.4 or greater. (I distribute an application that needs to run on a wide range of versions of Mac OS X). The official binary I found refuses to install on my machine claiming it wants system python 2.6 (I happen to be running 10.5 so that's no use to me, and some users of my application are running 10.4). I also tried the egg, but of course it fails -- presumably it's based on the same build. If a binary isn't available Ill make my own, but I figured I'd check first. -- Russell -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first I made binaries (on Mac OS X 10.5) using my instructions: http://www.astro.washington.edu/users/rowen/BuildingMatplotlibForMac.htm l They are available from here, for now: http://www.astro.washington.edu/users/rowen/python/ please test them. If they work then I hope the matplotlib folks will consider serving them as official for 3rd-party Python binaries (as opposed to the current ones they are serving, which are for Apple's Python). -- Russell -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] matplotlib Mac binary that works with python.org python and older MacOS X?
I'm trying to find a matplotlib 0.99.3 binary installer that works with the standard python.org Python (preferably 2.6) and hence works with Mac OS X 10.4 or greater. (I distribute an application that needs to run on a wide range of versions of Mac OS X). The official binary I found refuses to install on my machine claiming it wants system python 2.6 (I happen to be running 10.5 so that's no use to me, and some users of my application are running 10.4). I also tried the egg, but of course it fails -- presumably it's based on the same build. If a binary isn't available Ill make my own, but I figured I'd check first. -- Russell -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib on mac os x question
A few things: - What python and matplotlib are you using? I recommend Mac Python from python.org (use the binary installer) and the Mac binary installer for matplotlib. - Note that matplotlib 0.99.0 is current. I suggest you upgrade. - If you are using TkAgg (as seems likely), I'm not sure how well it plays with IDLE. I suggest you try the same example from the command line (Terminal application). - What is your default backend? The normal Mac binary matplotlib uses TkAgg, which is a good choice in this case. But if you build from source the default is Agg, which is probably not what you want. You can set the default explicitly by editing .matplotlib/matplotlibrc (which has probably appeared now that you've run matplotlib once). Here's a slightly shorter example (I confess I'm not familiar with matplotlib.pyplot so I hope this is not deprecated): import pylab pylab.plot([1, 2, 3]) pylab.show() -- Russell In article 426212.49374...@web110309.mail.gq1.yahoo.com, Walid Majid wma...@yahoo.com wrote: Hi, I am new to matplotlib and having trouble running a simple example, which I found on one of the tutorial pages: import matplotlib.pyplot as plt plt.plot([1,2,3]) plt.ylabel('some numbers') plt.show() The problem I encounter is that no plot actually shows up when I run the above sequence on my idle session. I am running on Mac OS X 10.5.6 and if anyone can give me some help, I would appreciate it. Python: 2.5.4 idle: 1.2.4 matplotlib: 0.98.5.3 WM -- 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] _tkinter problem
Your python is missing the _tkinter library, so it cannot use Tkinter. Normally if you build from source then all you have to do is build and install tcl and tk first, then build python and it should find the tcl/tk and build _tkinter (the library that links to Tcl/Tk and allows Tkinter to work). If you installed from an RPM or some such then perhaps you need to get some additional RPMs. If you have additional questions about installing python with Tkinter support I suggest you post to the python-tkinter mailing list (gmane.comp.python.tkinter on gmane). -- Russell In article 7483f0868d484ae6a0a7ddb5bfbfd...@newhome, Paul Simon psi...@sonic.net wrote: I have the tkinter problem and need some assistance to straighten it out. From the web page http://wiki.python.org/moin/TkInter; I tested as in step 1 and cannot import _tkinter. I do not have that file on my computer, but do have tkinter.py in /usr/local/lib/python2.6/lib-tk. as well as the directories /usr/lib/tk8.5 and /usr/lib/tcl8.5. This matplotlib and python stuff is great, but the documentation frequently feels like it is just a bit out of my grasp. I realize that all of this is free but I understand the instructions on the web page to repair only to the point of confusion. I'm not an expert. How do I modify my python configuration? Is there a file that needs to be edited? Which setup.py file do I use? Make? or python setup.py build and python setup.py install? Thanks. I appreciate your help. Paul Simon -- 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 -- 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
Re: [Matplotlib-users] What would you like to see in a book about Matplotlib?
In article 8b2d7b4d0901050152p4c7487a8m21fb7fb823297...@mail.gmail.com, Sandro Tosi mo...@debian.org wrote: Hello and Happy 2009! I received the interesting proposal to author a book on Matplotlib, the powerful 2D plotting library for Python. While preparing the arguments list, I'd like to hear even your opinion, because different points-of-view will lead to a better product. Some basic question I'd like to ask are: - what are you using matplotlib for? Plotting data from a networked Tkinter application. - what are the (basic) things that, when you were beginning to use matplotlib, you wanted to see grouped up but couldn't find? - what would you like to see in a book about matplotlib? I want a user's guide for the class API. So far I've figured it out by reading examples, trying to extrapolate from the pylab user's guide (which is quite good) and reading the class API reference, but I feel that I barely understand what I am doing. - what are the things you'd like to explore of matplotlib and never had time to do? I'd like to know how best to handle plotting data as it arrives (e.g. strip charts and evolving x-y plots). I've got code that works but am not convinced I'm doing it in the best fashion. Histograms. -- Russell -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Problem installing 0.91.2 egg on OS X 10.4
In article [EMAIL PROTECTED], Charlie Moad [EMAIL PROTECTED] wrote: I have replaced the binary with a working version. I'm running into an odd issue with that version (at least). If I unzip the egg and run easy_install on it it ends up in site-packages with odd permissions: % pwd /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-pack ages % ls -l drwx-- 9 rowen admin 306 Jan 14 16:59 matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg The permissions inside look normal so this is easy to fix with chmod, but it seems strange. Any idea if I am doing something wrong or if something is wrong with the package? -- Russell - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] eggs or pythonmac packages on OS X?
In article [EMAIL PROTECTED], Stephen Uhlhorn [EMAIL PROTECTED] wrote: I'm running MacPython 2.5 on Mac OS 10.5.1 and would like to update matplotlib to 0.91.1. Im using mpl 0.90.1 from the pythonmac site now. Is it better for me to wait till a pythonmac package is availabel or are the eggs on SF good to use. I would favor the SF eggs because of ease of upgrading unless there are some OS X conflicts I'm unaware of. If you use Tcl/Tk and use a current version (instead of the ancient version that is built in) then use the packages at pythonmac. I just built 0.91.1 today and it should show up there soon. Meanwhile you can get it from here: http://www.astro.washington.edu/rowen/pythoninstallers/ I hope that someday the official Mac egg version will work with 3rd party Tcl/Tk but no version I've tried has -- including 0.91.1. If I use the eggs, what's the best way to safely uninstall the pythonmac package? Just delete the relevant site-packages durectory? That's what I do, but I'm not sure it's the best way. I delete all folders whose names start with matplotlib (usually a folder named matplotlib and another named matplotlib-xxx-py2.5.egg-info) -- Russell - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] matplotlib 0.90.1 binary installer for Mac
I've built a binary installer for matplotlib 0.90.1 for Mac that includes support for: - TkAgg that works with a user-installed Aqua Tcl/Tk (unlike the standard build) or the standard old Tcl/Tk from Apple - WXAgg using wxPython 2.8. I've only checked WXAgg and TKAgg on my PPC Mac. If anyone could test it on an Intel Mac I would be grateful. For now you can get it here: http://www.astro.washington.edu/rowen/pythonpackages/ In the long run it will be available here: http://pythonmac.org/packages/py25-fat/index.html -- Russell P.S. Build instructions are here: http://www.astro.washington.edu/rowen/BuildingMatplotlibForMac.html - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Anyone using TkAgg on OS X successfully
In article [EMAIL PROTECTED], Samuel M. Smith [EMAIL PROTECTED] wrote: Anyone using TkAgg on OSX 10.4 with MPL 0.90.0 and Python 2.5 successfully? Absolutely. I use the package at http://pythonmac.org/packages/ (which I also built). One quirk is that I use ActiveState Aqua Tcl/Tk (8.4.11) rather than Apple's built-in Tcl/Tk. But it should work either way. What problems are you having? -- Russell - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Anyone using TkAgg on OS X successfully
At 2:30 PM -0600 2007-05-07, Samuel M. Smith wrote: If you see my other post titled (Segmentation Fault TkAgg backend). I was getting a seg fault It appears to be a problem with the MPL in the scipy superpack. When I reinstalled your package it worked again. The reason I installed the scipy superpack was it was the only package installer for scipy. Any chance of you posting a package installer of scipy? I'm afraid it's not likely, at least not in the near term. I don't really need scipy (though it would be handy at times) and work is keeping me busy on other tasks. -- Russell - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] ANN: matplotlib-0.90.0
At 9:42 AM -0800 2007-02-21, Chris Barker wrote: Russell E Owen wrote: I did earlier today; I'm hoping it will go up in the next day or so. WXAgg is built against wxPython 2.6.x because last I heard the 2.8.x issues weren't resolved. Correct. I'm still not sure how well MPL works with wxPython2.8 on other platforms, but no one has fixed the issues on OS-X yet. There is something weird with toolbars with wxPython2.8, I've run into that with some other code, so it may even take a new release of wxPython to get it all right... Thank you for the update. FYI: matplotlib 0.90.0 for Python 2.5 is now available at http://pythonmac.org/packages. I did not build a version for Python 2.4. Regards, -- Russell - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] ANN: matplotlib-0.90.0
At 2:33 PM -0700 2007-02-20, Samuel M. Smith wrote: Shouldn't the version of wxPython also get included in the name along with the python version and os version? That information is in the ReadMe file in the installer. I will try to remember to look there in the future to know which wx is supported, thanks. The matplotlib on sourceforge http://downloads.sourceforge.net/matplotlib/matplotlib-0.90.0-py2.5-macosx-10.4-fat.egg?modtime=1171118530big_mirror=0 is an egg but doesn't install with easy_install. Complains there is no setup.py file. I copied the .egg directory into site-packages but it is not automatically included in sys.path when I run the python interpreter. I have to manually do this: from pkg_resources import require require(matplotlib) [matplotlib 0.90.0 (/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.90.0-py2.5-macosx-10.4-fat.egg)] for it to be accessible. I guess I have to add it manually to my PYTHONPATH or else generate a .pth file and put it in site-packages to get it automatically added to sys.path? In the past the distributions were a little more user friendly for installing. I know I can't complain too much since you are doing all the work. Just wondering if I missed something when I tried to install it. Oops, I just realized how misleading my earlier message was. I do NOT build the official matplotlib Mac packages. I have been building the packages at pythonmac.org. I started that because an earlier Python 2.4 matplotlib package crashed when using a user-installed Tcl/Tk* and just never got out of the habit. So I don't have anything to do with the official matplotlib Mac binaries and I have no idea what's in their ReadMe files. I *hope* they include the necessary info about what version of wxPython is required and all that, but I don't know. I can't help you with easy_install either. Sorry. -- Russell * The crash stems from a limitation of the Mac build of Python 2.4 that was fixed in 2.5. By default MacPython 2.4 does not find a 3rd party Tcl/Tk. There's a simple patch to fix this but it appears that binary packages that use Tkinter may not work with 3rd party Tcl/Tk unless the patch was applied by the person doing the build. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] broken download links
If I go to the matplotlib download page: http://sourceforge.net/project/showfiles.php?group_id=80706 then there is a table showing matplotlib and matplotlib-toolkits. Clicking on Download or matplotlib-0.90.0 results in a page with no files. On the other hand, clicking on matplotlib (the upper-left link of the table) does the right thing. So does scrolling down, but that may be not be obvious unless one has a really big window. -- Russell - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] ANN: matplotlib-0.90.0
At 4:48 PM -0700 2007-02-20, Samuel M. Smith wrote: On Feb 20, 2007, at 14:47 , Russell E Owen wrote: In the past the distributions were a little more user friendly for installing. I know I can't complain too much since you are doing all the work. Just wondering if I missed something when I tried to install it. Oops, I just realized how misleading my earlier message was. I do NOT build the official matplotlib Mac packages. I have been building the packages at pythonmac.org. I started that because an earlier Python 2.4 matplotlib package crashed when using a user-installed Tcl/Tk* and just never got out of the habit. So I don't have anything to do with the official matplotlib Mac binaries and I have no idea what's in their ReadMe files. I *hope* they include the necessary info about what version of wxPython is required and all that, but I don't know. I can't help you with easy_install either. Sorry. Well that explains why there is no readme in the distribution on source forge. Any chance you will build a distribution of matplotlib 0.90 for pythonmac soon? I did earlier today; I'm hoping it will go up in the next day or so. WXAgg is built against wxPython 2.6.x because last I heard the 2.8.x issues weren't resolved. -- Russell - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib can't find pygtk during build
At 9:42 AM -0800 2007-02-05, Christopher Barker wrote: Stephen Uhlhorn wrote: My python is from ActiveState (Framework) which was recommended by the scipy people. Here's the real saga. I had a working Fink installaiton of python/numpy/scipy/matplotlib until an update to scipy broke critical functions (fopen). The fix is in cvs, so this whole mess started in an attempt to use a cvs version of scipy. You could (should) have re-built scipy inside your fink distro. I would like to add that I used to keep a unix/X11 build of python on my Mac in parallel with a framework build so I could test a GUI app on X11 and Aqua. (I build the stuff myself instead of using fink; I never could get comfortable with fink). In any case, I eventually gave up. Installing packages that had a GUI interface took extra work -- for the X11 python I had to temporarily hide the Aqua GUI stuff. Eventually I gave up and ditched the X11 version. But if you *only* use fink then this comment is irrelevant--they've handled it for you. I tried wxpython2.6 first, but figure windows never got drawn on my display, even when I used pythonw. wxPython 2.6.3, as distributed on the wxPython site and pythonmac, should work with MPL. I've lost track of whether there is a properly built binary of MPL on pythonmac at this point. Search these archives, and you'll see discussion of how to do it, or send a note to me if this one fails: http://pythonmac.org/packages/py24-fat/index.html Russell, if you're listening -- did you ever post your binary for Python2.4, wxPython2.6.3 ? It's up. Bob Ippolito put it up shortly after he got back from vacation. -- Russell - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] problem with show()
In article [EMAIL PROTECTED], Chiara Caronna [EMAIL PROTECTED] wrote: I, I have a problem with showing plot. When I run this code: figure(1) semilogx(data[:,0],data[:,1]) savefig('try.png') show() It save the plot properly, but it doesn't show it. I tried to run it with --verbose-helpful and this is the output: matplotlib data path /usr/local/lib/python2.4/site-packages/matplotlib/mpl-data $HOME=/users/caronna CONFIGDIR=/users/caronna/.matplotlib loaded rc file /usr/local/lib/python2.4/site-packages/matplotlib/mpl-data/matplotlibrc matplotlib version 0.87.7 verbose.level helpful interactive is False platform is linux2 numerix numpy 1.0.1 font search path ['/usr/local/lib/python2.4/site-packages/matplotlib/mpl-data'] loaded ttfcache file /users/caronna/.matplotlib/ttffont.cache backend Agg version v2.2 Does anyone know what's the problem? I'm not familiar with the Agg back end but I suspect it does not support output on a display. Try TkAgg, WXAgg or GTKAgg instead (depending what matplotlib was built to support) e.g. by editing ~/.matplotlib/matplotlibrc -- Russell - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] more outdated/unhelpful documentation and installation issues on Mac OS X 10.4
In article [EMAIL PROTECTED], belinda thom [EMAIL PROTECTED] wrote: Hi again, At http://matplotlib.sourceforge.net/installing.html under topic OS X: All of the backends run on OS X. Chris Barker has built a binary package (fink users see below) for matplotlib which is hosted on pythonmac, and works with Agg, Wx and Tk; see the step-by-step instructions kindly provided by Michael Tobis. note that the step-by-step link leads to: Under revision. Please come back soon. That is indeed outdated (Charlie Moad has done most of the recent binary builds, though I got in first on a few). One source of how to build is: Building Matplotlib for MacOS http://www.astro.washington.edu/rowen/BuildingMatplotlibForMac.html -- Russell - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib on Mac OS X via Fink?
In article [EMAIL PROTECTED], Lev Givon [EMAIL PROTECTED] wrote: Received from Adam Mercer on Tue, Nov 14, 2006 at 03:55:15PM EST: On 14/11/06, Lev Givon [EMAIL PROTECTED] wrote: I am also using Apple's X11 1.1.2 / Xfree86 4.4.0. Has anyone had any success using the above Fink packages? There is a font problem with X11 1.1.2, upgrade to X11 1.1.3 which was released yesterday and you should be OK. Cheers Adam I upgraded X11 as indicated and rebuilt/reinstalled matplotlib, but the problem persists. Should I rebuild/install the graphical libraries matplotlib depends on (e.g., freetype, gtk)? I had guessed it was the known X11 1.1.2 font problem, too. Oh well... Some more info might help, such as: - What python are you using (where did it come from and what version is it)? - What back end are you trying to use? - Did you create and configure a matplotlibrc file? Admittedly errors in these errors usually result in a traceback instead of a segfault, but it's a start. -- Russell - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Any fix for wxAgg on Mac?
At 10:18 AM -0800 2006-11-09, Christopher Barker wrote: Russell and Charlie, Are your two binaries any different? Any reason to choose one over the other? In particular, which of these are supported: numpy 1.* Numeric numarray GTK TK wx (which version?) My binary supports: - numpy 1.0 (the default), Numeric and numarray - TkAgg using the built in Tcl/Tk or a user-added Tcl/Tk 8.4.x - WXAgg using wxPython 2.6 (I just realized this is the default, which is bad because it's not built in) It does not support GTK or Qt. Unfortunately it requires the user to: - Install one or more numeric packages - Set up a matploblibrc file unless they want to use numpy and WXAgg so it includes a ReadMe.txt file telling the user what to do. It would be better if matplotlib just ran out of the box. I'm not sure the best way to do this. Some possibilities are: - Include numpy in the matplotlib package and have the default matplotlibrc file use that. One would have to be careful about how to handle an existing numpy (if any), and I really don't know how to do that. Naive users would probably appreciate matplotlib using its own version and ignoring any built in (and possibly incompatible) version, but that sounds like a nightmare for more experienced users. - Run a post-install script that modifies the default matploblibrc file by looking for installed numeric packages and picking one as the default for numerix. It could warn the user if no compatible numeric package was found. This is clearly less friendly than the first option, but doesn't bring up the issue of conflicting with a user-installed numpy. - Some combination whereby a post-install script installs numpy 1.0 if no numpy is found and bitches loudly if a too-old version is found. Any ideas on this? Charlie: does your version already handle this somehow? If we use my package then I should submit a new version that has TkAgg as its default. -- Russell - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] How to build matplotlib with wx support
I build matplotlib 0.87.7 for Python 2.5 with support for TkAgg and WXAgg, the latter using the binary wxPython 2.7 installer from http://pythonmac.org/packages. Unfortunately, the matplotlib had a problem: WxAgg failed with: MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the wx.Bitmap Disaabling acceleration as follows seems to work around the problem, but I don't know how complete a fix it is: import matplotlib.backends.backend_wxagg matplotlib.backends.backend_wxagg._use_accelerator(False) Christopher Barker was immensely helpful in explaining what was wrong. There are two issues: 1) The wxPython installer is finding the wrong wx-config. It finds the one for the outdated built-in wx instead of the one used by wxPython (which is deeply buried and very unlikely to be on your $PATH). 2) There are bugs in the particular wxPython 2.7 I was using that prevent building matplotlib. Note that 2.7.x is, by definition, a development branch; the next stable release series will be 2.8.x. So the recipe that works is: - Install wxPython 2.6.x (preferably the unicode version) from http://www.wxpython.org/download-2.6.3.3.php#binaries or perhaps soon from: http://pythonmac.org/packages/ - Put its wx-config on your path. I did this as follows: sudo ln -s /usr/local/lib/wxPython-unicode-2.6.3.3/lib/wx/config/mac-unicode-debug-2.6 I suggest removing the link when finished since it won't be updated if you ever update wxPython. (Note: I found the correct file by looking for wx-config using File Buddy). - Install one or more numeric of numpy, numarray and/or Numeric Binary installers are available at http://pythonmac.org/packages/ - Build matplotlib as usual. -- Russell - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Any fix for wxAgg on Mac?
On Feb 25 Samuel Smith reported that WXAgg crashed on MacOS X using matplotlib 0.87. I just built matplotlib 0.87.7 on Python 2.5 and am still having the problem. Christopher Barker suggested disabling acceleration: import matplotlib.backends.backend_wxagg matplotlib.backends.backend_wxagg._use_accelerator(False) and that does work, but I was wondering if a fix was known? Google only turned up the problem, not a solution. Regards, -- Russell P.S. here are the gory details: Configuration: - PowerBook G4 - MacOS X 10.4.7 - Python 2.5 (from the python main site) - wxPython 2.7.1.3 (from http://pythonmac.org/packages/py25-fat/index.html) - numpy 1.0, numarray 1.5.1 and Numeric 24.2 (all from source) - matplotlib 0.87.7 (from source) TkAgg works fine, but WXAgg fails (using numarray or numeric as numerix) when I try to plot as follows: from pylab import * show() Traceback (most recent call last): File /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-pac kages/matplotlib/backends/backend_wx.py, line 1048, in _onPaint self.draw(repaint=False) File /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-pac kages/matplotlib/backends/backend_wxagg.py, line 63, in draw self.bitmap = _convert_agg_to_wx_bitmap(self.get_renderer(), None) MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the wx.Bitmap Traceback (most recent call last): File stdin, line 1, in module File /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-pac kages/matplotlib/backends/backend_wx.py, line 1193, in show figwin.canvas.draw() File /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-pac kages/matplotlib/backends/backend_wxagg.py, line 63, in draw self.bitmap = _convert_agg_to_wx_bitmap(self.get_renderer(), None) MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the wx.Bitmap - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] crash on MacOS X
At 3:12 PM -0700 9/15/06, Christopher Barker wrote: Russell E Owen wrote: Interesting idea. I'm not sure I'd know how to use more than one numerix option at once, well, I dint' mean more than one numerix option, exactly. What I meant was that MPL is using numarray, but another module you've imported is using Numeric (or numpy or whatever). Ah. I can guarantee that's happening. Some of my code uses Numeric (due to high speed on short arrays) and some uses numarray (because I started using it for all new code when it looked like it would take over). I hope to switch to numpy for everything once the dust settles, but I don't want to force my users to all move at once (a lot of them are on unix and will have to manually install numpy -- no big deal, but I get complaints every time I require a new package). but it did inspire me to try a few things: backend : TkAgg numerix : numarray interactive : True and the crash still happens: from pylab import * plot([1,2,3,4]) I also tried setting numerix to Numeric and it still happens. Does it happen with wxAgg? or just plain ol Agg? also try the non-agg TK back-end. I don't have wx or gtk installed, so no easy way to test those backends. It does not crash with plain old Agg (but of course I don't see any plot). I'll be happy to try the non-agg TK back-end if you can tell me what setting to use for it. I didn't see it in the matplotlibrc's list of options (but WXAgg is also missing from that particular list), nor on the Which backend should I use? page. If not, then you've apparently found a tkAgg bug. TK has always been a bit of a second-class citizen on the Mac -- why haven't you switched to wx yet? ;-) I started this project several years ago and at the time Tcl/Tk was the only game in town for Mac+unix+windows cross-platform support. Admittedly the Mac support was poor, but it has gotten much better, and I like Tkinter pretty well overall. It would be a major job to switch now and I doubt I can justify the expense and time. Sometimes I wish I'd used Java, even though the I strongly prefer Python, just to get a standard GUI. I'll try bulding matplotlib from source, just to see if there might be some quirk about the installer package. -- Russell - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] crash on MacOS X
In article [EMAIL PROTECTED], Christopher Barker [EMAIL PROTECTED] wrote: Russell E Owen wrote: well, I didnt' mean more than one numerix option, exactly. What I meant was that MPL is using numarray, but another module you've imported is using Numeric (or numpy or whatever). Ah. I can guarantee that's happening. Some of my code uses Numeric (due to high speed on short arrays) and some uses numarray (because I started using it for all new code when it looked like it would take over). Then this could be it. In general, they should co-exist just fine, but do know someone else has weird crashing problems when they were mixed with MPL (and GDAL, in his case). Both numpy and Numeric, and numarray have a lot of extension code that shares names, etc. who knows what problem that can cause? I hope to switch to numpy for everything once the dust settles, good plan, and it's getting close. The API should be stable now. The sooner the better, I think. You'll be a lot more help with bugs or potential bugs like this one. I look forward to the unification, but unfortunately I don't think it will help with this crash (unless the very fact that the numarray and/or Numeric are installed but not loaded can cause problems). I see the crash even with this trivial script: $ python from pylab import * plot([1,2,3,4]) show() boom! matplotlib 0.87.5 crashes with ~/.matplotlib/matplotlibrc set to use numarray (1.5.1), Numeric or numpy (1.0b5). I don't have wx or gtk installed, so no easy way to test those backends. if you install the mpkg on pythonmac.org/packages, wx should work. that's pretty easy. Fair enough. I installed wxPython (2.6) and the above scripts works fine (as long as interactive is false). It does not crash with plain old Agg (but of course I don't see any plot). Does it save a png successfully? I can try this if you think it will help. It appears to be a lot more work than just slapping up a plot using pylab so I've not tried it yet. I also failed to build matplotlib from source. I had all the prerequisites in /usr/local (and I reinstalled freetype 2.2.1 to be sure, since the version shown in /usr/local/lib has no resemblance to the source version). During the build I see these warnings (but no errors): /usr/bin/ld: for architecture i386 /usr/bin/ld: warning /usr/local/lib/libpng.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded) and after installation, importation of pylab fails as follows: from pylab import * Traceback (most recent call last): File stdin, line 1, in ? File /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-pac kages/pylab.py, line 1, in ? from matplotlib.pylab import * File /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-pac kages/matplotlib/pylab.py, line 200, in ? from axes import Axes, PolarAxes File /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-pac kages/matplotlib/axes.py, line 15, in ? from axis import XAxis, YAxis File /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-pac kages/matplotlib/axis.py, line 25, in ? from font_manager import FontProperties File /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-pac kages/matplotlib/font_manager.py, line 39, in ? from matplotlib import ft2font ImportError: Failure linking new module: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-pack ages/matplotlib/ft2font.so: Symbol not found: _FMDisposeFontFamilyIterator Referenced from: /usr/local/lib/libfreetype.6.dylib Expected in: flat namespace -- Russell - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] crash on MacOS X
I'm trying to figure out a matplotlib crash on MacOS X. When I try to plot anything the program exits with: alloc: invalid block: 0xa08acb4: a 74 0 I first saw this with a program that uses the object interface, but then I tried the simplest pylab demo I could find and the same thing happened. Setup: - matplotlib installed from the universal package at pythonmac.org configured to use numarray (1.5.1) and the TkAgg back end - MacOS X 10.4.3 on a PPC mac - ActiveState Aqua Tcl/Tk 8.4.13 - seen with two different versions of python: - ActiveState python 2.4.3 (PPC-only) - universal Python 2.4.3 (with _tkinter.so modified to find my Tcl/Tk) Any ideas? -- Russell - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] crash on MacOS X (more info)
In article [EMAIL PROTECTED], Russell E. Owen [EMAIL PROTECTED] wrote: I'm trying to figure out a matplotlib crash on MacOS X. When I try to plot anything the program exits with: alloc: invalid block: 0xa08acb4: a 74 0 ... some followup info: - This is with matplotlib 0.87.5, but also seen with 0.87.4 and 0.87.2 - This is with ActiveState Tcl/Tk 8.4.11, not 8.4.13 as I originally said I tried the test again with debug-annoying level logging. Before running it I: - deleted everything in ~/.matplotlibrc. - .../site-packages/matplotlib/mpl-data to ~/.matplotlibrc and stripped out all but a few options (something I'd never tried before, but I'm hoping it'll leave me a matplotlibrc file that is compatible with future versions of matplotlib, for a change): backend : TkAgg numerix : numarray interactive : False verbose.level : debug-annoying verbose.fileo : sys.stdout I then ran the test: from pylab import * plot([1,2,3,4]) show() The crash happens after the show(): ... RendererAgg.draw_text RendererAgg._get_agg_font alloc: invalid block: 0xa08acb4: a 74 0 The full log is here: http://rowen.astro.washington.edu/mpl.txt One other thing that may be relevant (and is in the log): whenever I run matplotlib for the first time after deleting the font cache, I always get a spate of warnings like this: 455: UserWarning: Could not open font file /System/Library/Fonts/LastResort.dfont -- Russell - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] crash on MacOS X
In article [EMAIL PROTECTED], Christopher Barker [EMAIL PROTECTED] wrote: Russell E Owen wrote: Interesting idea. I'm not sure I'd know how to use more than one numerix option at once, well, I dint' mean more than one numerix option, exactly. What I meant was that MPL is using numarray, but another module you've imported is using Numeric (or numpy or whatever). Ah. I can guarantee that's happening. Some of my code uses Numeric (due to high speed on short arrays) and some uses numarray (because I started using it for all new code when it looked like it would take over). I hope to switch to numpy for everything once the dust settles, but I don't want to force my users to all move at once (a lot of them are on unix and will have to manually install numpy -- no big deal, but I get complaints every time I require a new package). ...Does it happen with wxAgg? or just plain ol Agg? also try the non-agg TK back-end. I don't have wx or gtk installed, so no easy way to test those backends. It does not crash with plain old Agg (but of course I don't see any plot). I'll be happy to try the non-agg TK back-end if you can tell me what setting to use for it. I didn't see it in the matplotlibrc's list of options (but WXAgg is also missing from that particular list), nor on the Which backend should I use? page. If not, then you've apparently found a tkAgg bug. TK has always been a bit of a second-class citizen on the Mac -- why haven't you switched to wx yet? ;-) I started this project several years ago and at the time Tcl/Tk was the only game in town for Mac+unix+windows cross-platform support. Admittedly the Mac support was poor, but it has gotten much better, and I like Tkinter pretty well overall. It would be a major job to switch now and I doubt I can justify the expense and time. Sometimes I wish I'd used Java, even though the I strongly prefer Python, just to get a standard GUI. I'm bulding matplotlib from source now, just to see if there might be some quirk about the installer package. -- Russell - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users