cum-prob data, creating & labeling non-linear y-axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
garyn87048
Posts: 13
Joined: Sat Nov 29, 2003 5:38 am

cum-prob data, creating & labeling non-linear y-axis

Post by garyn87048 » Tue Feb 24, 2004 12:21 am

Hi-

I'm ploting cum-prob data. The x and y data is linear. However, I need the y-axis labels to be non-linear. Generally, the computed y-axis data ranges between +-3, but the associated percentage labels occur at non-linear locations. For example:
y value, percentage
2.326342, 99
1.281551, 90
0.524401, 70
0, 50
-0.5244, 30
-1.28155, 10
-2.32634, 1
On the y-axis at the value 2.32 I need label to be 99% to be displayed.

How can I create and display a y-axis with labels at 99%, 90%, 70%, etc displayed at values (y positions) 2.32, 1.28, 0.52, etc respectively?

This is cum-prob data (which I assume is somewhat common to plot - sometimes along the x axis and sometimes along the y axis), so I'm hoping that someone else has already tackled this problem.?.

Thanks for the help!

Gary

Locked