TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Easily plot realtime data (via Perl and GnuPlot)

39 点作者 ttsiodras超过 13 年前

7 条评论

kgtm超过 13 年前
Line 5 just made me spill my coffee (or I need to drink some more). Since STDOUT is the default filehandle, there is no need to muck around with that anachronism. A simple $| = 1 would suffice. This idiom was once useful for setting autoflush for a filehandle <i>other</i> than STDOUT, but this is not the case here. For a lengthier discussion on this, including the apologies of Randal Schwartz for coming up with it (when admittedly other facilities were not available for the very specific use case it addresses) see [0].<p>[0] <a href="http://stackoverflow.com/questions/196754/what-does-selectselects-10-do-in-perl" rel="nofollow">http://stackoverflow.com/questions/196754/what-does-selectse...</a>
评论 #3211675 未加载
评论 #3211798 未加载
supar超过 13 年前
Perl/shell utilities to drive gnuplot come over and over on HN and Reddit. Gnuplot is _slow_. There's a better (and easier) way to deal with realtime data:<p><a href="http://www.thregr.org/~wavexx/software/trend/" rel="nofollow">http://www.thregr.org/~wavexx/software/trend/</a><p>It's already been used for all kind of stuff (<a href="https://projects.ardrone.org/boards/1/topics/show/491" rel="nofollow">https://projects.ardrone.org/boards/1/topics/show/491</a>, ECG, etc).
bradleyland超过 13 年前
Very cool! I use gnuplot and a simple Ruby script [1] to plot my ab results. I may take a crack at adapting this technique to a Ruby script so I can see my results in real time.<p>1 - <a href="https://github.com/bradland/apache-bench-grapher" rel="nofollow">https://github.com/bradland/apache-bench-grapher</a>
dddima超过 13 年前
Got a better one for you: <a href="https://github.com/dkogan/feedgnuplot" rel="nofollow">https://github.com/dkogan/feedgnuplot</a><p>As the script from the OP, this is a tool to plot STDIN. This one has been refined far more, so it's trivial to use and very powerful.
评论 #3212106 未加载
sqrt17超过 13 年前
How is that simpler than, e.g., Python's matplotlib?
评论 #3214780 未加载
评论 #3212078 未加载
veyron超过 13 年前
Have you tried using tcl/blt?
vrode超过 13 年前
Perl is like a corpse of a beautiful woman. Tempting, but still so very wrong.