On 09/03/2012 04:40, amar Singh wrote:
The following is the part of my code which is running faster locally
and more slowly remotely via ssh on the same machine. Note I am trying
to generate a multi-page report.
## create plots and write to a pdf file
from scipy import *
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
# open a multi-page pdf file
pp = PdfPages('history_plot.pdf')
F=loadtxt('hist.dat',comments='%')
t=F[:,0]
E=F[:,13]
plt.plot(t,E)
h1=plt.ylabel('Energy', fontsize=16)
h1=plt.xlabel('Time', fontsize=16)
pp.savefig()
plt.clf()
VdotB=F[:,14]
plt.plot(t,VdotB)
pp.savefig()
pp.close()
I can't help directly but you may be better off asking on the matplotlib
users mailing list see
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list