Matplotlib backend issue

The MacOSX backend itself does not use X11. So I would suggest to check which modules get loaded when you import pyplot, and see which one of those causes X11 to open.
-Michiel

···

------------------------------
On Fri, Jul 19, 2013 4:14 PM EDT Tommy Grav wrote:

I just installed matplotlib on a new MacBook Pro

ActivePython 2.7.2.5 (ActiveState Software Inc.) based on
Python 2.7.2 (default, Jun 24 2011, 12:20:15)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import numpy
numpy.__version__

'1.7.1'

import matplotlib
matplotlib.__version__

'1.2.1'

matplotlib.matplotlib_fname()

'/Users/tgrav/.matplotlib/matplotlibrc'

That works fine. However, when I try to do

import matplotlib.pyplot as plt

it tries to open X11, which I have not installed and would like to
try to avoid. The matplotlibrc file has

backend : MacOSX

Anyone know why it is still trying to open X11 and how I can avoid that?

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Thanks. How do I check which modules get loaded? When I import pyplot a window pops up that explains that X11 is no longer part of the Mac OS X distribution and the python shell exits to the prompt.

Also are there anything I need to do to make MacOSX available to matplotlib. I have installed XCode, but I notice that there is no longer a /Developer directory at the root level (all developer code resources are not part of XCode application). Could this be causing matplotlib to not find the MacOSX environment? Or am I missing a path or keyword in my bash environment perhaps?

Cheers
Tommy

···

On Jul 20, 2013, at 9:09 AM, Michiel de Hoon <mjldehoon@...9...> wrote:

The MacOSX backend itself does not use X11. So I would suggest to check which modules get loaded when you import pyplot, and see which one of those causes X11 to open.