📜  jmathplot - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:41.581000             🧑  作者: Mango

代码示例1
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);