matplotlib with X11

Adam Mercer ram at macports.org
Wed Dec 26 15:22:01 PST 2012


On Sat, Dec 22, 2012 at 2:00 PM, Corey Cooke <cdcooke at vt.edu> wrote:
> Does anyone know how to set up matplotlib (right now i'm using
> py27-matplotlib) such that it uses X11 to draw the windows so they can be
> viewed from a remote SSH session?  I've tried changing the backend in
> ~/.matplotlib/matplotlibrc from 'MacOSX' to 'Qt4Agg' (still renders on local
> machine only),

QT4 uses Aqua, so that will display on the local machine.

> 'GTKAgg' (gives 'ImportError: No module named _backend_gdk'),
> and several others, with no success.

GTKAgg should display over X11, provided GTK is built against X11 and
not Aqua. Can you file a ticket at trac.macports.org, and assign it to
me (ram at macports.org), make sure to include a script that shows the
problem.

Cheers

Adam


More information about the macports-users mailing list