When I try to save a fig to a file I get the error
TclError Couldn't Connect to display ":0.0"
I looked in the Maplotlib users manual (latest version pg 144-146) and
tried the following with no luck. BTW why is the same module named
differently Linux/Win ?
import matplotlib
matplotlib.use('Agg')
import matplotlib.pylab as plt (linux ) or, import matplotlib.pyplot as
plt (Windows)
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot([1,2,3])
fig.savefig('test.png')
Is Matplotlib trying to display a plot to the monitor?
rlp
--
View this message in context:
http://www.nabble.com/TclError-Couldn%27t-Connect-to-display-%22%3A0.0%22-tp22176192p22176192.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users