1 Dec 2011 05:15
Re: pass tuples to user defined function(beginner)
Emile van Sebille <emile <at> fenx.com>
2011-12-01 04:15:59 GMT
2011-12-01 04:15:59 GMT
On 11/29/2011 4:44 PM Dave Angel said... > Any chance you were a customer or vendor of Wang? That 80mb drive, > dumbed down, for prices around $20k, rings a bell. That was around 1980 as an ISV -- a Basic Four 610 -- we paid I think $50k? retailed at $70k. 8 user, 256k memory, two 35Mb drives that for $15k a piece you could get the tech to come out and clip the strap on the high order bit of the address space register which would double the usable space. Kinda like getting a discount on a caddy but they deliver the car with the back doors welded shut. Emile _______________________________________________ Tutor maillist - Tutor <at> python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
]
On 2011-12-01 11:13, stm atoc wrote:
> Well, I did also change the line in the python script to this:
>
> plot(Conc[0],z,'r-',label='initial')
> plot(Conc[1],z,'b-',label='after 20s')
>
> to see both Conc[0] and [1].
And did it work?
> I will send the output data attaches to this email ("ourtest_out.list").
>
> I wonder if this way is fine.
I'm not sure about the policy regarding attachements on this list but I
think it would have been better to provide a link than attach it.
Anyways, I've reduced your original script, did a test run and it works
as expected (at least it shows a plot):
import numpy
import matplotlib.pyplot as pyplot
with open("ourtest_out.list", "r") as f:
z = numpy.array([float(v) for v in f.readline().split()[1:]])
a = numpy.loadtxt("ourtest_out.list", skiprows=3)
N = 100
RSS Feed