Re: [Tutor] unsupported operand

2011-12-18 Thread Alan Gauld
On 18/12/11 22:35, stm atoc wrote: Well, I tried to check and I do not have that problem any more..but i have the clear script as follows and a couple of question regarding to this: # coding: utf-8 from pylab import * import numpy import matplotlib.pyplot as pyplot import matplotlib.mlab as mla

Re: [Tutor] unsupported operand

2011-12-18 Thread stm atoc
Well, I tried to check and I do not have that problem any more..but i have the clear script as follows and a couple of question regarding to this: # coding: utf-8 from pylab import * import numpy import matplotlib.pyplot as pyplot import matplotlib.mlab as mlab #tmax=360 with open("ourtest_out.l

Re: [Tutor] unsupported operand

2011-12-17 Thread Steven D'Aprano
stm atoc wrote: and this is the error that I got: Would you like us to guess which line causes the error? Please show the ENTIRE traceback. Do not retype it from memory, paraphrase or simplify it, or otherwise change it in any way. Copy and paste it. TypeError: unsupported operand type(s)

Re: [Tutor] unsupported operand

2011-12-17 Thread bodsda
dsda=googlemail@python.org Date: Sat, 17 Dec 2011 21:30:17 To: tutor Subject: [Tutor] unsupported operand Hi there, I would like to define concentration array based on time and then plot it. Here is the profile: from pylab import * import numpy import array import math tmax=1*3600 t =

[Tutor] unsupported operand

2011-12-17 Thread stm atoc
Hi there, I would like to define concentration array based on time and then plot it. Here is the profile: from pylab import * import numpy import array import math tmax=1*3600 t = 1. outfile=open('ourtest_out.list','w') N = 100 Conc1 = arange([0, tmax]) outfile.close() lw = 2.0 #linewidth d