Java实现交互式2D和3D图表 JMathPlot

jopen 12年前

提供绘制可交互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);

项目主页:http://www.open-open.com/lib/view/home/1341823922650