Skip to content
yvancouver edited this page Apr 29, 2014 · 3 revisions

from http://matplotlib.org/users/installing.html#build-requirements check if everything his installed

Building on OSX The build situation on OSX is complicated by the various places one can get the libpng and freetype requirements (darwinports, fink, /usr/X11R6) and the different architectures (e.g., x86, ppc, universal) and the different OSX version (e.g., 10.4 and 10.5). We recommend that you build the way we do for the OSX release: get the source from the tarball or the git repository and follow the instruction in README.osx.

can not install the bundle because e macport python is not recognize by the installer .....

install form git https://github.com/matplotlib/matplotlib

clone on desktop

  • /Users/yvans/Home/workspace/matplotlib
  • from the README.osx file
  • Building mpl on OSX has proven to be a nightmare because of all the
    

different types of zlib, png and freetype that may be on your system. The recommended and supported way to build is to use a third-party package manager to install the required dependencies, and then install matplotlib from source using the setup.py script. Two widely used package managers are homebrew and MacPorts. The following example illustrates how to install libpng and freetype using homebrew.

Example usage::
brew install libpng freetype pkgconfig
If you are using MacPorts, execute the following instead:

Example usage::

port install libpng freetype DONE! To install matplotlib from source, execute: Example usage:: python setup.py install DONE

Test : python examples/pylab_examples/simple_plot.py --verbose-debug !WORKS!!

In case of non working animation set blit=False as indicated here ust set blit=False when animation.FuncAnimation() is called and it will work. For instance (from double_pendulum_animated): ani = animation.FuncAnimation(fig, animate, np.arange(1, len(y)), interval=25, blit=False, init_func=init)

29Mai2014

Restarted with this

Clone this wiki locally