Java 3D绘图库?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1740830/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 22:06:53  来源:igfitidea点击:

Java 3D plot library?

java3d

提问by Zenzen

Ok so I'm doing a project on visualization of some financial stuff in java, the main objective is to take some input from the stock market, run it through a few equations and then plot the result as a 3D plot. I have almost everything done BUT the visualization (which is the most important I guess).

好的,所以我正在做一个关于在 Java 中可视化一些金融内容的项目,主要目标是从股票市场获取一些输入,通过几个方程运行它,然后将结果绘制为 3D 图。除了可视化(我认为这是最重要的),我几乎已经完成了所有工作。

At first I was thinking about using java3d, but I'm running short on time and I don't really have the time to learn it. Is there any really simple library for visualizing 3D stuff in java (I need stuff like zooming, rotating etc.).

起初我想使用java3d,但我的时间很紧,我真的没有时间去学习它。是否有任何真正简单的库用于在 Java 中可视化 3D 内容(我需要缩放、旋转等内容)。

I found jmathtools (which looked perfect) but for some reason it doest want to compile.

我发现 jmathtools(看起来很完美)但由于某种原因它不想编译。

回答by Matt

Take a look at Processing

看看处理

It is a Java-based visualization tool aimed at quick development time. It offers both 2D and 3D rendering modes.

它是一种基于 Java 的可视化工具,旨在缩短开发时间。它提供 2D 和 3D 渲染模式。

It comes with its own editor, but its compiled code can be used along with your other Java code.

它带有自己的编辑器,但其编译后的代码可以与您的其他 Java 代码一起使用。

However, do note that its 3D mode uses JOGL.

但是,请注意其 3D 模式使用JOGL

EDITQuick link to some of their 3D examples with source: http://processing.org/learning/3d/

编辑快速链接到他们的一些 3D 示例,来源:http: //processing.org/learning/3d/

回答by kgiannakakis

What exactly is wrong with the compilation of JMathTools? I also wanted to do a quick 3D visualization some time ago and I have successfully used JMathTools. The API is straightforward and zooming, rotating and panning come out of the box. It isn't possible to customize every aspect of the graph, but since it is open source, you have the chance to do the modifications yourself.

JMathTools的编译到底有什么问题?前段时间我也想做一个快速的 3D 可视化,我已经成功地使用了 JMathTools。API 很简单,缩放、旋转和平移开箱即用。自定义图表的每个方面是不可能的,但由于它是开源的,您有机会自己进行修改。

回答by True Soft

With JFreeChartyou can do lots of charts in Java (even candlestick charts). Hereare some samples.

使用JFreeChart,您可以在 Java 中制作大量图表(甚至是烛台图表)。这里有一些示例。

回答by weberste

I can recommend jzy3d. It's easy to use and produces very nice 3d plots.

我可以推荐jzy3d。它易于使用并生成非常漂亮的 3d 绘图。

回答by eric

there is also Surface Plotter. It's dedicated to plotting 3d functions ( z = f(x,y) ). It's LGPL, 100% pure java-swing, and designed for reuse.

还有表面绘图仪。它专门用于绘制 3d 函数( z = f(x,y) )。它是 LGPL,100% 纯 java-swing,专为重用而设计。

回答by timaschew

I try to make a summary and show a simple and effective way for creating plots (2d and 3d)

我尝试做一个总结并展示一种简单有效的创建绘图的方法(2d 和 3d)

  • JFreeChartis a great tool but there are not 3d charts.
  • jzy3dcan create realy amazing 3d charts, but you need third-party libraries and especially native platform-dependant libs, because it uses JOGL. I have a Mac with Snow Leopard (64bit) and there realy some terrible issues (I could not solve it). I think SWT+64 bit Mac OS X is the problem.
  • JMathToolsis a smaller tool than the others, but the performance is bad with big datasets.
  • Surface Plotteris a realy nice tool, there are many 3d options and it don't uses JOGL or anything like this.

  • In My Alternative, I use a nice, user-friendly Java API (JavaPlot) which based on Gnuplot. In my example on github I add a mouse motion listener to a JPanel for interactive rotating a 3d chart. When you have Gnuplot experience, you can use the power of Gnuplot in any Java application.

  • JFreeChart是一个很棒的工具,但没有 3d 图表。
  • jzy3d可以创建非常棒的 3d 图表,但是您需要第三方库,尤其是与平台相关的本机库,因为它使用 JOGL。我有一台装有 Snow Leopard(64 位)的 Mac,但确实存在一些可怕的问题(我无法解决)。我认为 SWT+64 位 Mac OS X 是问题所在。
  • JMathTools是一个比其他工具更小的工具,但是对于大数据集的性能很差。
  • Surface Plotter是一个非常好的工具,有很多 3d 选项,它不使用 JOGL 或类似的东西。

  • My Alternative 中,我使用了一个基于Gnuplot的漂亮、用户友好的 Java API ( JavaPlot) 。在我在 github 上的示例中,我向 JPanel 添加了一个鼠标运动侦听器,用于交互式旋转 3d 图表。当您有 Gnuplot 经验时,您可以在任何 Java 应用程序中使用 Gnuplot 的强大功能。

回答by wealth

Just found casmi, may be helpful.

刚刚找到casmi,可能会有所帮助。