Yay Python:
The solution was a syntax one, if anyone else ever feels like massively
multi-plotting histograms, here is the working code:
#----------------------------------------------
fig, axes = plt.subplots(nrows=5, ncols=6, figsize=(12,6))
index=0
for b in axes:
for ax in b:
index=index+1
set=(dat['a'+str(index)] == 1.00)
#write the data
n, bins, patches = ax.hist(VGSR[set], 30, normed=1)
#label the axis
if index==13.0:
ax.set_ylabel('counts')
if index >= 25.0:
ax.set_xlabel('VGSR')
plt.show()
#-----------------------------------------------
~Elaina Hyde
--
PhD Candidate
Department of Physics and Astronomy
Faculty of Science
Macquarie University
North Ryde, NSW 2109, Australia
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor