[Matplotlib-users] get_xlim of dates

2014-09-16 Thread Xiaobo Yang
Hi, My X axis represents dates. When I used get_xlim(), I got something like 735461.0 and 735490.5. What are these values? How can I convert to python date objects? Many thanks, Tom -- Want excitement? Manually upgrade

Re: [Matplotlib-users] get_xlim of dates

2014-09-16 Thread Jerzy Karczmarczuk
Le 16/09/2014 17:31, Xiaobo Yang a écrit : My X axis represents dates. When I used get_xlim(), I got something like 735461.0 and 735490.5. What are these values? How can I convert to python date objects? Please, read the documentation of datetime. Your data are *ordinals*, numbers which

Re: [Matplotlib-users] get_xlim of dates

2014-09-16 Thread Scott Lasley
On Sep 16, 2014, at 11:31 AM, Xiaobo Yang xiaobo.y...@gmail.com wrote: Hi, My X axis represents dates. When I used get_xlim(), I got something like 735461.0 and 735490.5. What are these values? How can I convert to python date objects? Many thanks, Tom See the matplotlib dates

Re: [Matplotlib-users] get_xlim of dates

2014-09-16 Thread Xiaobo Yang
many thanks - was struggling to find out where's the document! On 16 September 2014 17:20, Scott Lasley slas...@space.umd.edu wrote: On Sep 16, 2014, at 11:31 AM, Xiaobo Yang xiaobo.y...@gmail.com wrote: Hi, My X axis represents dates. When I used get_xlim(), I got something like