HTML 中的动态绘图
我一直在开发一个软件包,以电影的形式绘制天文数据。它看起来像这个。
为此,我将 100 个数据表从 Java 导出到 gnuplot,并使用 bash 脚本将它们转换为 GIF。我想用 HTML 或 Raphael 来完成。
我想我可以使用 Python 脚本来迭代文件夹并构建一百个图,然后循环它们。对此有什么想法吗?我怎样才能让他们骑自行车?
I have been developing a software package to plot astronomical data in the form of a movie. It looks like this.
To do this, I export 100 tables of data from Java to gnuplot and use a bash script to turn them into a GIF. I want instead to do it in HTML and maybe Raphael.
I'm thinking that I can use a Python script to iterate through folders and build a hundred plots, and then cycle through them. Any ideas on this? How can I get them to cycle?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您必须测试性能问题,但 FLOT 可能正是适合您的...
以下是 flot 动画的示例:
http://people.iola.dk/olau/flot/examples/realtime.html
You will have to test performance issues, but FLOT might be just the thing for you...
here is an example of flot animating:
http://people.iola.dk/olau/flot/examples/realtime.html
我认为画布就是您所需要的。只需绘制所有点,清除画布,然后重新绘制
您的代码就会看起来像这样的伪代码
I think a canvas is what you need. Just draw all the points, clear the canvas, and redraw
your code would look something like this pseduo code
即使我在寻找类似的东西,我发现这个链接将尝试一下 http://humblesoftware.com/flotr2/
Even I was looking for something similar, I found this one link will be trying it out http://humblesoftware.com/flotr2/