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 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!