Python 中实时图表的好框架吗?
我正在开发一个 Python 应用程序,该应用程序涉及对实时数据运行回归分析,并将两者绘制成图表。也就是说,应用程序会收到实时数据,并且回归模型会随着数据更新而重新计算。请注意,我想在同一个图表中绘制输入(数据)和输出(回归分析)。
我之前用 Matplotlib 做过一些工作。这是最好的框架吗?它似乎相当静态,我找不到任何与上面类似的好例子。对我来说它也显得相当臃肿。性能是关键,所以如果有任何快速且占用空间小的 Python 图表框架,我会洗耳恭听......
I am working on a Python application that involves running regression analysis on live data, and charting both. That is, the application gets fed with live data, and the regression models re-calculates as the data updates. Please note that I want to plot both the input (the data) and output (the regression analysis) in the same one chart.
I have previously done some work with Matplotlib. Is that the best framework for this? It seems to be fairly static, I can't find any good examples similar to mine above. It also seems pretty bloated to me. Performance is key, so if there is any fast python charting framework out there with a small footprint, I'm all ears...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我已经用 matplotlib 做了相当多的动画绘图 - 它总是需要我一些争论才能让它工作。
这是一个很好的例子:
http://matplotlib.sourceforge.net/examples/animation/ simple_anim_gtk.html
I've done quite a bit of animated graphing with matplotlib - it always took me some wrangling to get it to work.
Here's a nice example though:
http://matplotlib.sourceforge.net/examples/animation/simple_anim_gtk.html
我没有使用过 Matplotlib,但我总是发现 gnuplot 足以满足我所有的图表需求。
您可以选择从 python 调用 gnuplot 或使用 gnuplot.py
(gnuplot-py.sourceforge.net) 与 gnuplot 交互。
I havent worked with Matplotlib but I've always found gnuplot to be adequate for all my charting needs.
You have the option of calling gnuplot from python or using gnuplot.py
(gnuplot-py.sourceforge.net) to interface to gnuplot.
您可以使用 OpenFlash Chart会给你一个非常好的输出。
您不必拥有 Flash(它可以在 Flex 上使用),并且有一个 python 库 以一种很好的 Python 方式写下图表:
You can use OpenFlash Chart which wil give you a very nice output.
You don't have to have flash (it works on Flex) and there is a python library to write down the charts in a nice pythonic manner: