On Fri, Jun 8, 2012 at 3:36 AM, Maximilian Fabricius
<[email protected]> wrote:
> it seems that whenever I plot something, a window opens.
>
> from matplotlib import pylab
> import numpy
> pylab.plot(numpy.random.normal(size=100))
>
> Now, I have code that is supposed to produce diagnostic plots as PDFs. Only
Before importing pylab, do
import matplotlib
matplotlib.use('pdf')
The FAQ for using mpl in a web app server is pretty relevant to this use case
http://matplotlib.sourceforge.net/faq/howto_faq.html#matplotlib-in-a-web-application-server
JDH
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users