擅长:python、mysql、java
<p>根据它声明的<a href="http://www.gnuplot.info/documentation.html">gnuplot 4.6 manual</a>,在“时间/日期说明符”下(gnuplot 4.6pdf的第114页):</p>
<blockquote>
<p>%S - second, integer 0–60 on output, (double) on input</p>
</blockquote>
<p>这意味着,当读取诸如<code>2013-09-16 09:56:59.412</code>之类的时间戳时,小数部分将作为<code>%S</code>说明符的一部分包括在内。这样的时间戳将通过以下方式正确处理:</p>
<pre><code>set timefmt "%Y-%m-%d %H:%M:%S"
set datafile separator ","
plot "timed_results.data" using 1:2 title 'Results' with lines
</code></pre>
<p>并提供如下数据:</p>
<pre><code>2013-09-16 09:56:53.405,10.947
2013-09-16 09:56:54.392,10.827
2013-09-16 09:56:55.400,10.589
2013-09-16 09:56:56.394,9.913
2013-09-16 09:56:58.050,11.04
</code></pre>