Advertisement
Guest User

Untitled

a guest
Feb 28th, 2015
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. cats=dict((x, events.count(x)) for x in events)
  2. fig=plt.figure()
  3. fig.suptitle("HEALTH records", fontsize=15, fontweight='bold')
  4. ax=fig.add_subplot(111)
  5.  
  6. ax.set_title("Number of records {0}, collected on {1} animals".format(len(events), len(anims)), fontsize=10)
  7.  
  8. ax.bar(range(len(cats)), cats.values())
  9. plt.xticks(range(len(cats)), cats.keys())
  10. locs, labels = plt.xticks()
  11. ax.set_xlabel("Health codes")
  12. ax.set_ylabel("Counts")
  13. plt.savefig("HEALTH records {0}.png".format(pop))
  14. plt.clf()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement