I think your correct, the matplotlibrc file says that the backend is set to Agg.
Here’s the traceback:
python: 3.1.2 (r312:79147, Sep 27 2010, 09:45:41) [GCC
OPTIONAL BACKEND DEPENDENCIES
* Using default library and include directories for
* Tcl and Tk because a Tk window failed to open.
* You may need to define DISPLAY for Tk to work so
* that setup can determine where your libraries are
* located. Tkinter present, but header files are not
* found. You may need to install development
* Building for Gtk+ requires pygtk; you must be able
* to “import gtk” in your build/install environment
Mac OS X native: no
OPTIONAL DATE/TIMEZONE DEPENDENCIES
datetime: present, version unknown
OPTIONAL USETEX DEPENDENCIES
[Edit setup.cfg to suppress the above messages]
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’]
copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.linux-i686-3.1/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf -> build/lib.linux-i686-3.1/matplotlib/mpl-data
On Fri, Jul 8, 2011 at 2:49 PM, Darren Dale <dsdale24@…287…> wrote:
On Wed, Jun 29, 2011 at 10:46 AM, Jorge Garcia <jgarc063@…3649…> wrote:
I was trying to test out the Python 3 development version with the first
plot shown in the pyplot tutorial. Everything seems to work ok until I go
at which point nothing happens, I don’t see a plot. Python accepts the
command and is waiting for a new command but I have no plot.
Maybe you don’t have a python-3 compatible gui library installed, in
which case your backend is defaulting to AGG, which cannot render a
window for you.
I’ve tried changing the backend in the matplotlibrc file to TkAgg, but I
still get nothing, in fact now when I try to import matplotlib I get a
traceback error that name -tkagg is not defined, seems like it might be
something in the module.
Can anyone lend a hand?
Posting the exact traceback would help us help you. I’ll hazard a
guess that you don’t have the tk development packages installed, so
the tkagg backend could not be built when you installed matplotlib for
py3, and therefore tkagg cannot be selected as your backend.