ImageUtility.saveImage(plot, 500, 400, root + "/rapaio/graphics/boxplot-test.png");
}
BufferedImage bi1 = ImageUtility.buildImage(plot, 500, 400);
BufferedImage bi2 = ImageIO.read(this.getClass().getResourceAsStream("boxplot-test.png"));
Assert.assertTrue(bufferedImagesEqual(bi1, bi2));
<BUG>}
public void testFunLine() throws IOException, URISyntaxException {</BUG>
Plot plot = funLine(x -> x * x, color(1))
<BUG>.funLine(x -> Math.log1p(x), color(2))
</BUG>
.funLine(x -> Math.sin(Math.pow(x, 3)) + 5, color(3), points(10_000))

ImageUtility.saveImage(plot, 500, 400, root + "/rapaio/graphics/boxplot-test.png");
}
BufferedImage bi1 = ImageUtility.buildImage(plot, 500, 400);
BufferedImage bi2 = ImageIO.read(this.getClass().getResourceAsStream("boxplot-test.png"));
Assert.assertTrue(bufferedImagesEqual(bi1, bi2));
}
@Test
public void testFunLine() throws IOException, URISyntaxException {
Plot plot = funLine(x -> x * x, color(1))
.funLine(Math::log1p, color(2))
.funLine(x -> Math.sin(Math.pow(x, 3)) + 5, color(3), points(10_000))
