Hi, > Went looking on examples page and found there was a file name demo_image.py > http://matplotlib.sourceforge.net/examples/axes_grid/demo_image.html > > However for whatever reason the source code was not downloadable (404 > error), so I copied it off the html page.
I'm not sure why the matplotlib examples page would contain weird dependencies like that, rather than just having simpler examples. As for 'pip', it is a replacement for 'easy_install', both of which find and install python packages. pip is meant to improve on easy_install, with new features and more stability. And I think you figured out my exact problem: > I'd be questioning your configuration of matplotlib, there should be a rc > file somewhere, maybe you (or your distro) have set the backend to gtk by > default? Yep, unfortunately in ~/.matplotlib/matplotlibrc this line was set to backend : GTKAgg So I fixed that. The other solution I found is to have at the top of the plotting script the matplotlib.use() statement so that it uses something else for a backend: import matplotlib # Do this before importing pylab or pyplot #matplotlib.use('Agg') # Anti-Grain Geometry (raster images) matplotlib.use('PDF') import matplotlib.pyplot as plt Thanks! Mike ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users