Adjust cell size in the graph XY

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ChrisMcCandless
Posts: 1
Joined: Sun May 20, 2018 11:11 pm
antibot: No, of course not.

Adjust cell size in the graph XY

Post by ChrisMcCandless » Sun May 20, 2018 11:24 pm

Hello, I have a JFreechart XY in which I draw some circles on some axes, but the cells come out rectangular and instead of circles, ellipses come out. Where or how can I adjust the cell size so that they are square and the graph shows circles?

This is how I get the "circles"

Image

and that's how I want the cells to be

Image


Thank you very much for your help

Por si lee alguien en español. Tengo una JFreechart XY para dibujar unos circulos, el problema es que al representarlo, el tamaño de celda de la gráfica no es cuadrado debido a la escala de los ejes. Por culpa de esto, la gráfica representa unas elipses en lugar de unos círculos. A ver si alguien sabe donde o como cambiar el tamaño de escala, para que sean cuadradas y la representación sea unos círculos. Gracias de antemano.

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: Adjust cell size in the graph XY

Post by John Matthews » Mon May 21, 2018 12:58 am

In the approach shown here, the axes have a common range and the enclosing container's preferred dimensions have a common length.

Locked