26 Jun 2012 13:19
Re: Looping over histogram plots
Don Jennings <dfjennings <at> gmail.com>
2012-06-26 11:19:22 GMT
2012-06-26 11:19:22 GMT
> Message: 1
> Date: Tue, 26 Jun 2012 18:40:50 +1000
> From: Elaina Ann Hyde <elainahyde <at> gmail.com>
> To: tutor <at> python.org
> 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 - Tutor <at> python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
(Continue reading)
RSS Feed