0
Plot2DPanel plot = new Plot2DPanel();
Plot2DPanel plot1 = new Plot2DPanel();
plot.addScatterPlot("Error plot", Color.yellow, data1);
plot1.addScatterPlot("Error plot", Color.GREEN, data2);
// put the PlotPanel in a JFrame, as a JPanel
JFrame frame = new JFrame("a plot panel");
frame.setSize(600, 600);
frame.setContentPane(plot);
frame.setContentPane(plot1);
frame.setVisible(true);
동일한 그래프에 2 개의 산점도를 플롯하고자합니다. 위의 코드로 시도했지만 작동하지 않습니다. 출력에서 나는 data2의 scatterplot을 얻고있다. 어떻게해야합니까?JMathPlot을 사용하여 ScatterPlot 결합하기