avoiding .5 vlaues at x-axis

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

avoiding .5 vlaues at x-axis

Post by Heinrich Goetzger » Wed Mar 05, 2003 12:26 pm

Hi,
in my XY-Diagramm I have, depending on the data, sometimes .5 values at the x-axis.
Is there an easy way to avoid this?

thanks

Heinrich

David Gilbert

Re: avoiding .5 vlaues at x-axis

Post by David Gilbert » Wed Mar 05, 2003 3:33 pm

Yes, you can use the setStandardTickUnits(...) method in the axis to define the 'standard' tick units.

There is a TickUnits collection that uses integers only, already defined for you - use NumberAxis.createIntegerTickUnits().

Regards,

Dave Gilbert

Heinrich Goetzger

Re: avoiding .5 values at x-axis

Post by Heinrich Goetzger » Mon Mar 10, 2003 1:11 pm

David,

thanks, works very fine!

Locked