matplotlib-users

Sorry if I've missed this in the docs but is it possible to directly
plot a histogram with a date x axis or do I have to roll my own? This
is critical as I'm on a diet and trying to plot my weight loss against
date :)
--
Cheers.
Mark Lawrence.

On Jul 14, 2012, at 7:49 AM, Mark Lawrence wrote:
> Sorry if I've missed this in the docs but is it possible to directly
> plot a histogram with a date x axis or do I have to roll my own? This
> is critical as I'm on a diet and trying to plot my weight loss against
> date :)
>
> --
> Cheers.
>
> Mark Lawrence.
Are you sure you want a histogram - weight vs date sounds more like a simple bar graph (which matplotlib does trivially).
-Bill

On 14/07/2012 13:41, William R. Wing (Bill Wing) wrote:
> On Jul 14, 2012, at 7:49 AM, Mark Lawrence wrote:
>
>> Sorry if I've missed this in the docs but is it possible to directly
>> plot a histogram with a date x axis or do I have to roll my own? This
>> is critical as I'm on a diet and trying to plot my weight loss against
>> date :)
>>
>> --
>> Cheers.
>>
>> Mark Lawrence.
>
> Are you sure you want a histogram - weight vs date sounds more like a simple bar graph (which matplotlib does trivially).
>
> -Bill
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
You are correct, why did I say histogram when I've been looking at my
own code that plots bars? Just shows that a beer free diet is no good
for you :) Let's try again, is it possible to directly
plot a bar chart with a date x axis or do I have to roll my own?
--
Cheers.
Mark Lawrence.

On Jul 14, 2012, at 8:57 AM, Mark Lawrence wrote:
> On 14/07/2012 13:41, William R. Wing (Bill Wing) wrote:
>> On Jul 14, 2012, at 7:49 AM, Mark Lawrence wrote:
>>
>>> Sorry if I've missed this in the docs but is it possible to directly
>>> plot a histogram with a date x axis or do I have to roll my own? This
>>> is critical as I'm on a diet and trying to plot my weight loss against
>>> date :)
>>>
>>> --
>>> Cheers.
>>>
>>> Mark Lawrence.
>>
>> Are you sure you want a histogram - weight vs date sounds more like a simple bar graph (which matplotlib does trivially).
>>
>> -Bill
>
[byte]
> You are correct, why did I say histogram when I've been looking at my
> own code that plots bars? Just shows that a beer free diet is no good
> for you :) Let's try again, is it possible to directly
> plot a bar chart with a date x axis or do I have to roll my own?
>
> --
> Cheers.
>
> Mark Lawrence.
>
A good start on time-series X-axis plotting is here: http://blog.mafr.de/2012/03/11/time-series-data-with-matplotlib/
And the sorceforge matplotlib gallery has several versions of bar charts (with code) here: http://matplotlib.sourceforge.net/gallery.html
-Bill