JMathPlot交互式2D和3D图表

联合创作 · 2023-09-28 23:52

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);
浏览 3
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报