I recently got a new mac and reinstalled Python 2.7.5 and NumPy, Matplotlib, etc. inside a virtualenv. Everything works so far but I trouble with matplotlib windows. Here is a before/after explanation of the problem:
Before: On my old mac, when I would use matplotlib to plot, there would be a window created and opened with "Python Launcher" after calling plt.show(). I.e. this window would be treated by OSX as a normal application running. Therefore it would have its own dock icon from the python Launcher, an own menu-bar, where the app would be simply called "Python" etc.
After: Now, on my new machine, when I do the same, there is a figure window created, but, it is not treated by MacOSX as an application. This creates some problems: - When the window is created it doesn't get focus, i.e. it is opened behind all other windows. - When I want to switch to the window (e.g. with Mission Control), this won't work and the window will show up for a blink of the second and the be behind all other windows again. - I can't close the window with cmd+q etc. All I can do is move all other windows out of the way to see the plot.
Is this the normal matplolib behaviour or did something get screwed up during installation?
On my old mac, I installed Python with MacPorts, now I used the official Python installers from python.org.
Any Ideas? Thanks Jan