Hm. thanks for the info. But it's not perfect... I get times in my
formats, but not the dates. Here is the sample code:
# Example boxplot code
from pylab import *
from matplotlib.dates import MonthLocator, WeekdayLocator, DateFormatter
from matplotlib.dates import MONDAY,SATURDAY
# fake up some data
set1 = (rand(50)+1) * 100
set2 = (rand(50)+2) * 100
ax = gca()
And yes, thanks for telling me about the timezone problem. I have
been doing all of my work in GMT, only to be confounded.
We really need a manual that explains all of the axis stuff.
Now, how do I get two boxplots on the same plot?
(This would be SO MUCH EASIER if boxplot would take a list of objects
that listed where the various thingies when...)
On Dec 15, 2006, at 8:56 PM, Pierre GM wrote:
>> 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.
> Use the "position" keyword, as a list of date ordinals (output of
> Then, use
> where tz is your current timezone (you can use None, that's easier).
> Et voila.
> You probably gonna have to play with tick rotation and date
> formatting, but
> that's another story
> Using the boxplot_demo
> # multiple box plots on one figure
> positions = [732659, 732660]
> boxplot(data, positions=positions)