> Message: 1
> Date: Tue, 26 Jun 2012 18:40:50 +1000
> From: Elaina Ann Hyde <[email protected]>
> To: [email protected]
> Subject: [Tutor] Looping over histogram plots
<snip>
> set=(dat['a'+str(index)] == 1.00)
You should not override the builtin set() type [1] as you've done here by
assigning it.
> #write the data
> P.hist(VGSR[set],bins=30, normed=True)
I am not familiar with matplotlib, etc. but given that the primary difference
in your two code samples is where you write the data, I suspect you want
something like:
ax.plot(P.hist(VGSR[set],bins=30, normed=True))
Take care,
Don
[1] http://docs.python.org/library/stdtypes.html#set
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor