Negative XYPlot

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Paul vogel
Posts: 2
Joined: Mon Nov 10, 2014 3:05 pm
antibot: No, of course not.

Negative XYPlot

Post by Paul vogel » Mon Nov 10, 2014 3:24 pm

How can I create an xyPlot, that scales the x axis from -0.1 .. to -1.1. Starts on the left side in x with -0.1 an ends on the right side in x with -1.1?

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Negative XYPlot

Post by david.gilbert » Tue Nov 18, 2014 9:48 pm

You can just call the setInverted() method on the axis:

http://www.jfree.org/jfreechart/api/jav ... d-boolean-
David Gilbert
JFreeChart Project Leader

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

Paul vogel
Posts: 2
Joined: Mon Nov 10, 2014 3:05 pm
antibot: No, of course not.

Re: Negative XYPlot

Post by Paul vogel » Thu Nov 20, 2014 7:51 am

Thank you David, it works.

Locked