How to reverse y axis?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Jane
Posts: 14
Joined: Wed Jun 25, 2008 7:16 pm

How to reverse y axis?

Post by Jane » Wed Jul 09, 2008 4:13 pm

Hello,

I need to reverse my y axis (i.e. I need to have larger value at the lower part
of the plot). I tried to do the following:

presAxis.setRange(1050.,0.);

It didn't work. What should I do?

Thanks,
Jane

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 » Wed Jul 09, 2008 4:25 pm

presAxis.setInverted(true).
David Gilbert
JFreeChart Project Leader

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

Locked