cyclopsvs wrote:
> Hello matplotlib users, 
> 
> I just recently started using the matplot library for generating simple
> graphs instead of using R. The problem i'm experiencing are the following. 
> 
> On my work station i had to enable x11 forwarding to be able to run a script
> generating plots on a server . The problem now is that my own computer is a
> mac and normally when i use the x11 app to connect to a server x forwarding
> is suited to run all script that use a x11 window. 

If you don't need interactive plots, you might consider doing it the
old-fashioned way: saving the plots as png files in batch mode
and displaying with firefox.

import matplotlib
matplotlib.use('Agg')  #non-interacive back-end
import matplotlib.pyplot as plt
....
plt.savefig('/home/me/public_html/plots/thefile.png',dpi=100)

We've automated this so the python script makes the plots,
builds an image gallery with thumbnails and
then copies the plots off our cluster (which doesn't mount
the web server directory) and onto the web server
using rsync. For example

http://clouds.eos.ubc.ca/~phil/savefigs/E/

-- Phil



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to