thanks for all the responses. still finding it very confusing!! but got it
to work (without having to import in the loop).
I used:
from datetime import datetime as dt
but I also had to call:
from datetime import timedelta
and now it seems to work nicely. thank you
On Fri, Apr 20, 2012 at 3:36 A
On Thu, Apr 19, 2012 at 1:21 PM, Goyo wrote:
> El día 19 de abril de 2012 05:31, questions anon
> escribió:
> > Thank you, I was able to get it to work but only if I imported datetime
> > within the loop, otherwise I ended up with the
> > AttributeError: type object 'datetime.datetime' has no at
El día 19 de abril de 2012 05:31, questions anon
escribió:
> Thank you, I was able to get it to work but only if I imported datetime
> within the loop, otherwise I ended up with the
> AttributeError: type object 'datetime.datetime' has no attribute 'datetime'
> and if I added 'import datetime' at
Thank you, I was able to get it to work but only if I imported datetime
within the loop, otherwise I ended up with the
AttributeError: type object 'datetime.datetime' has no attribute 'datetime'
and if I added 'import datetime' at the top of my script it had an error
where I loop through combining
El día 18 de abril de 2012 07:59, questions anon
escribió:
> I am not exactly sure how to use datetime objects instead of strings.
> This is the code I am working with at the moment and the code works except
> for the dates, they are just weird numbers along the x-axis.
Seems like you're plotting
I am not exactly sure how to use datetime objects instead of strings.
This is the code I am working with at the moment and the code works except
for the dates, they are just weird numbers along the x-axis.
Any help will be greatly appreciated.
import numpy as np
import matplotlib.pyplot as plt
fro
El día 12 de abril de 2012 03:46, questions anon
escribió:
> I am not sure how to recognise that x-axis are dates like 20110101,
> 20110102, 20110103 etc.
Use datetime objects instead of strings.
Goyo
--
For Developers
Hi matplotlib list,
I am having trouble applying mdates in matplotlib.
I am not sure how to recognise that x-axis are dates like 20110101,
20110102, 20110103 etc.
Any feedback will be greatly appreciated!
below is the code I have so far:
import numpy as np
import matplotlib.pyplot as plt
from nump