2 y-axis in one plot

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

2 y-axis in one plot

Post by Ove Dahl » Mon Jul 29, 2002 11:34 am

Is it possible to have 2 y-axis on one plot ?
In Your example JFreeChart 0.9.2 Demo there is an example of xy plot with 2 functions:

A: y = cosine(x)
B: y = 2 * sin(x)

And shared x and y axis for both functions.

If the function B: above is changed to

B: y = 2000 * sin(x) the plot would not be readable for
Function A:

Could I add a second Y-axis to the left for the revised plot function B: properly scaled ?
Thanks

David Gilbert

Re: 2 y-axis in one plot

Post by David Gilbert » Mon Jul 29, 2002 12:00 pm

It's a very popular request...see this thread for more info:

http://www.object-refinery.com/phorum-3 ... 878&t=2812

Regards,

DG.

Locked