Java 3D plot library? [closed]
开发者_开发技巧
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this questionOk 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).
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.).
I found jmathtools (which looked perfect) but for some reason it doest want to compile.
I try to make a summary and show a simple and effective way for creating plots (2d and 3d)
- JFreeChart is a great tool but there are not 3d charts.
- jzy3d can 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.
- JMathTools is a smaller tool than the others, but the performance is bad with big datasets.
Surface Plotter is 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.
I can recommend jzy3d. It's easy to use and produces very nice 3d plots.
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.
Just found casmi, may be helpful.
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.
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.
It comes with its own editor, but its compiled code can be used along with your other Java code.
However, do note that its 3D mode uses JOGL.
EDIT Quick link to some of their 3D examples with source: http://processing.org/learning/3d/
With JFreeChart you can do lots of charts in Java (even candlestick charts). Here are some samples.
精彩评论