Re: [Matplotlib-users] TclError Couldn't Connect to display ":0.0"

2009-02-25 Thread rlp_GMC
temp1, batt_ts, plotfile, dur): t =[] for x in batt_ts:# time axis to 0 based t.append((x - batt_ts[0])/divsor[dur]) fig = plt.figure() ax1 = fig.add_subplot(111) # subplot 1 col x 1 row ax1.plot([1,2,3]) fig.savefig('test.png') Error

[Matplotlib-users] TclError Couldn't Connect to display ":0.0"

2009-02-23 Thread rlp_GMC
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

[Matplotlib-users] TclError Couldn't Connect to display ":0.0"

2009-02-23 Thread rlp_GMC
-- View this message in context: http://www.nabble.com/TclError-Couldn%27t-Connect-to-display-%22%3A0.0%22-tp22176082p22176082.html Sent from the matplotlib - users mailing list archive at Nabble.com. -- Open Source B