On Wed, 29 Jul 2009 20:43:43 -0500 John Hunter <[email protected]> wrote:
> On Wed, Jul 29, 2009 at 7:33 PM, Christian > Lerrahn<[email protected]> wrote: > > Hi, > > I'm trying to make a few matplotlib scripts work on a box without > > any X. However, I would like to change it as little as possible and > > therefore don't want to get rid of the pylab interface. > > > > I almost got it to work already by just using the "dummy GUI", i.e. > > i use > > > > import matplotlib as m > > m.use('Template') > > import pylab as p > > Why not:: > > import matplotlib > matplotlib.use('Agg') > > Then you have a full featured mpl backend w/ no GUI or X requirements. Thanks for that! I had overlooked that backend. It seems to do the trick perfectly. :) Cheers, Christian ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
