Nonlinear Data

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

Nonlinear Data

Post by cchobanik » Thu Feb 26, 2004 3:29 pm

I was wondering if it is possible to plot data that isn't linear. What I mean is that I want the x axis tick marks to go like so. can you do this with maybe a secondary axis??? I am trying to plot HP/Torque x RPM and as time goes the RPM goes up then down, ect...

1000
2000
3000
2000
3000
4000
5000

Cory

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 » Fri Feb 27, 2004 1:12 pm

I don't fully understand - do you have a sample chart (from another source) I could look at?
David Gilbert
JFreeChart Project Leader

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

cchobanik

Post by cchobanik » Fri Feb 27, 2004 1:40 pm

I will try to find an example to show you.

Cory

garyn87048
Posts: 13
Joined: Sat Nov 29, 2003 5:38 am

Post by garyn87048 » Fri Feb 27, 2004 6:15 pm

David -

How would I go about labeling the y axis as follows:

I'm ploting cum-prob data. The x and y data are graphed linearly. However, I need the y-axis labels to be non-linear. 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?

Gary

Locked