JMathPlot交互式2D和3D图表
Provides interactive 2D/3D plot (without 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);
评论