简体   繁体   English

在Ruby / Python中可视化x,y,z坐标?

[英]Visualizing x,y,z coordinates in Ruby/Python?

I want to draw a continuous line through coordinate points I have stored in a hash, in 3D if possible, but probably 2D to start with. 我想通过存储在哈希中的坐标点画一条连续的线,如果可能的话,以3D绘制,但可能以2D开头。

I'd like to process about ten points/sec so that I can see the line being drawn over time. 我想以每秒10点的速度处理,以便可以看到随着时间的推移绘制的线。

Does anyone know a good way to visualize this? 有人知道可视化此内容的好方法吗? I have considered Python scripting in Blender, but I am wondering if there's a quicker way to get a working prototype. 我已经考虑过在Blender中使用Python脚本,但是我想知道是否有更快的方法来获得可用的原型。

Rather than use Ruby or Python solely for this, I'd recommend taking a look at the " D3.js " library. 我建议不要只使用Ruby或Python,而建议查看“ D3.js ”库。

You can take advantage of the browser's ability to generate graphics, and the D3 library's multitude of different plots and charts. 您可以利用浏览器生成图形的功能,以及D3库的多种不同图形和图表的优势。 It's very impressive and should be easy to integrate with Python or Ruby acting as the data generators, feeding the browser via JSON. 它给人留下了深刻的印象,应该易于与充当数据生成器的Python或Ruby集成,并通过JSON为浏览器提供数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM