How to format the slider value to datetime pattern in the matplotlib figure?
<p><a href="http://i.stack.imgur.com/TJgcf.png" rel="nofollow">The figure picture!</a>
Just like the picture, how can i format the number to datetime pattern. For example format 1472860800.0 to 2016-09-03.It can't use the datetime module to format directly. The key point is that it should be formatted in the matplotlib firgure. It is a slider value, and i have read the matplotlib docs ,but i haven't found the sloution.Thanks!</p>

<p>Use <a href="https://docs.python.org/2/library/datetime.html#module-datetime" rel="nofollow">datetime</a> module</p>

<pre><code>&gt;&gt;&gt; from datetime import datetime
&gt;&gt;&gt; datetime.fromtimestamp(1472860800).strftime("%Y-%m-%d")
'2016-09-03'
</code></pre>

python matplotlib