I've discovered that matplotlib does boxplots, and apparently this is what I should be using for one of the big graphs in my paper.
Two problems:
1. I need to put 45 boxplots on a single date plot. Each of the boxes has a different amount of data that goes in it. Since the boxplot() function wants to calculate its own means, rather than have me provide them, I need to either create a single 45xN Numeric array (and I can't), or else I need to call it 45 times. But each time I call it, the last box obscures the previous one. That is, this code only shows one box:
···
===================
#!/usr/bin/python
from pylab import *
# fake up some data
set1 = (rand(50)+1) * 100
set2 = (rand(50)+2) * 100
boxplot(set1,positions=[1])
boxplot(set2,positions=[2])
show()
=================
The boxplot function returns a list of lines that it adds, but when I capture the lines from set1 and add them manually to the axes object, it fails. What should I do?
2. I need to have the X axis of the boxplot be dates. There doesn't seem to be an easy way to do that.
Suggestions?
Thanks!