How to set equal scaling in Scattered Plot graph

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
upendra

How to set equal scaling in Scattered Plot graph

Post by upendra » Tue May 18, 2004 9:15 am

Hi,

I am using JFreeChart's latest version 0.9.12.

While creating scttered plot graph, i need equal scaling for both the axes.

Even though data is diffrent i need equal scaling.

please help me

upendra

garv
Posts: 127
Joined: Wed Mar 31, 2004 3:44 pm
Location: Amsterdam, The Netherlands

Post by garv » Tue May 18, 2004 12:34 pm

use the setLowerBound(...) and setUpperBound(...) methods of your axes. There are methods in the DatasetUtilities class that can help you determin the min and max values in any given dataset.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Tue May 18, 2004 9:44 pm

Equal scaling isn't supported yet. You might be able to get something close by manually setting the axis ranges as 'garv' suggested.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked