On Mon, Jul 18, 2011 at 10:58 AM, Daniel Mader
<danielstefanma...@googlemail.com> wrote:
> Hi,
>
> why don't you just parse the returned string?
>
> asdf = '3:04:02.994000'
> asdf = asdf.split(':')
> temp = asdf[-1].split('.')
> print asdf
> asdf.pop(-1)
> print asdf
> asdf.extend(temp)
> print asdf
> asdf = [int(i) for i in asdf]
> print asdf
> hrs,mins,secs,usecs = asdf
>
> That should work, and you can always transform this into some common
> unit, e.g. seconds etc.

Thanks.  The issue, though is that I don't want to display a graph
with seconds, but with whatever units is most suitable, since my data
is going to range from seconds to hours.  If most datapoints are
hours, I don't want things expressed in terms of "5000 seconds".

I thought there might be a way to use a DateLocator or DateFormatter
with this kind of data so that it could pick the most suitable units
based on a standardized time duration string.

So do people think I have to create my own custom locator or formatter
to do this?

Thanks,
Che

------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to