Skip to content

Can we set the image size in pixels? #93

@hmf

Description

@hmf

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions