Dynamically Updating/Extending the range of the Y-Axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
elr77
Posts: 3
Joined: Sun Mar 07, 2010 9:29 pm
antibot: No, of course not.

Dynamically Updating/Extending the range of the Y-Axis

Post by elr77 » Wed Oct 27, 2010 1:55 am

Hi,

I've written this program that plots some time series data generated by a simulation.

When a second run of the simulation is done it plots the results on top of the chart from the first simulation run. So the results of both simulation runs can be compared.
However, say there is a 10,000 unit difference between the results of simulation run 1 and simulation run 2, the chart cuts out parts of the results of simulation run 2 where these values are out of the range of the lowest or highest value of simulation run 1.
I was therefore wondering if it is possible to update/extend range of the Y-axis of the chart based on the time series data being plotted?

Thanks in advance

Locked