jzy3d 플로팅 라이브러리에서 hello world 응용 프로그램을 수행하려고했습니다. 웹 사이트에서 예제를 가져 왔는데 실행했을 때 다음과 같은 오류가 발생했습니다.간단한 Jzy3d 응용 프로그램이 런타임 예외를 제공합니다 - 구현 된 예외가 없습니다
Exception in thread "main" java.lang.RuntimeException: No implemented exception
아무도 말해도 될까요? 여기
는 참조 용 코드입니다import org.jzy3d.chart.Chart;
import org.jzy3d.chart.ChartLauncher;
import org.jzy3d.colors.Color;
import org.jzy3d.colors.ColorMapper;
import org.jzy3d.colors.colormaps.ColorMapRainbow;
import org.jzy3d.maths.Range;
import org.jzy3d.plot3d.builder.Builder;
import org.jzy3d.plot3d.builder.Mapper;
import org.jzy3d.plot3d.builder.concrete.OrthonormalGrid;
import org.jzy3d.plot3d.primitives.Shape;
import org.jzy3d.plot3d.rendering.canvas.Quality;
public class HelloWorld {
public static void main(String[] args) {
// Define a function to plot
Mapper mapper = new Mapper() {
public double f(double x, double y) {
return 10 * Math.sin(x/10) * Math.cos(y/20) * x;
}
};
// Define range and precision for the function to plot
Range range = new Range(-150, 150);
int steps = 50;
// Create a surface drawing that function
Shape surface = Builder.buildOrthonormal(new OrthonormalGrid(range, steps, range, steps), mapper);
surface.setColorMapper(new ColorMapper(new ColorMapRainbow(), surface.getBounds().getZmin(), surface.getBounds().getZmax(), new Color(1, 1, 1, .5f)));
surface.setFaceDisplayed(true);
surface.setWireframeDisplayed(false);
surface.setWireframeColor(Color.BLACK);
// Create a chart and add the surface
Chart chart = new Chart(Quality.Advanced);
chart.getScene().getGraph().add(surface);
ChartLauncher.openChart(chart);
}
}
오류 :
Exception in thread "main" java.lang.RuntimeException: No implemented exception at org.jzy3d.chart.factories.ChartComponentFactory.newFrame(ChartComponentFactory.java:148) at org.jzy3d.chart.ChartLauncher.frame(ChartLauncher.java:82) at org.jzy3d.chart.ChartLauncher.openChart(ChartLauncher.java:39) at org.jzy3d.chart.ChartLauncher.openChart(ChartLauncher.java:33) at org.jzy3d.chart.ChartLauncher.openChart(ChartLauncher.java:17) at helloworld.HelloWorld.main(HelloWorld.java:77)
그것은 여기 부서졌다 : https://github.com/jzy3d/jzy3d-api/commit/b0f9c324f4efbdf8adeb0f88d98c2b1773d961bf#diff-0f4ac30a46dcf1f2c191ba74a28e6b9d 여기에 고정 : https://github.com/jzy3d/jzy3d -api/commit/478f203692095e73d028f30694e7fbf71b5606ee # diff-0f4ac30a46dcf1f2c191ba74a28e6b9d 버전 0.9.2에서 작동합니다. – gouessej