Java实现交互式2D和3D图表 JMathPlot
提供绘制可交互2D和3D图表,无需openGL支持。可以实现的图表类型包括:
- 2D/3D scatter plot
- 2D/3D line plot
- 2D staircase plot
- 2D/3D histogram plot
- 2D/3D boxplot
- 3D grid plot
- 2D/3D quantiles on plots
示例代码:
import org.math.plot.*; ... double[] x = ... double[] y = ... // create your PlotPanel (you can use it as a JPanel) Plot2DPanel plot = new Plot2DPanel(); // add a line plot to the PlotPanel plot.addLinePlot("my plot", x, y); // put the PlotPanel in a JFrame, as a JPanel JFrame frame = new JFrame("a plot panel"); frame.setContentPane(plot); frame.setVisible(true);
本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
转载本站原创文章,请注明出处,并保留原始链接、图片水印。
本站是一个以用户分享为主的开源技术平台,欢迎各类分享!