[Tutor] Looping over histogram plots
Don Jennings
dfjennings at gmail.com
Tue Jun 26 13:19:22 CEST 2012
> 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
More information about the Tutor
mailing list