Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #21420

Re: how to get plots made faster

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: how to get plots made faster
Date 2012-03-09 06:01 +0000
References <5415ca7c-ccc4-4ec3-a118-4674e54038a7@b18g2000vbz.googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.529.1331272909.3037.python-list@python.org> (permalink)

Show all headers | View raw


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.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

how to get plots made faster amar Singh <jagteraho2006@gmail.com> - 2012-03-08 20:40 -0800
  Re: how to get plots made faster Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-03-09 06:01 +0000

csiph-web