Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cats=dict((x, events.count(x)) for x in events)
- fig=plt.figure()
- fig.suptitle("HEALTH records", fontsize=15, fontweight='bold')
- ax=fig.add_subplot(111)
- ax.set_title("Number of records {0}, collected on {1} animals".format(len(events), len(anims)), fontsize=10)
- ax.bar(range(len(cats)), cats.values())
- plt.xticks(range(len(cats)), cats.keys())
- locs, labels = plt.xticks()
- ax.set_xlabel("Health codes")
- ax.set_ylabel("Counts")
- plt.savefig("HEALTH records {0}.png".format(pop))
- plt.clf()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement