I would like to set the image size in pixels.
I tried this but it does not work.
val bufferedImage = plot
.xAxis()
.yAxis()
.frame()
.xLabel("x")
.yLabel("y")
.render(Extent(800, 600))
.asBufferedImage
ImageIO.write(bufferedImage, "png", file1)
Is this the correct way to do it?