How to set the Horizontal axis to...

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

How to set the Horizontal axis to...

Post by Arnold » Mon Jun 03, 2002 5:11 pm

HorizontalLogarithmicAxis, if all the reference to horizontal and vertical axis in Plot.java are commented out (all from cvs).

I tried uncommenting them out and added code missing and used:
Plot plot = m_jfcChart.getPlot();
plot.setHorizontalAxis(new HorizontalLogarithmicAxis("Log Test") );

but did not see the title or the scale change. It still showed the old line xyplot. Is there something I'm not using correctly. thanks.

David Gilbert

Re: How to set the Horizontal axis to...

Post by David Gilbert » Mon Jun 03, 2002 7:05 pm

You can use the methods setDomainAxis(...) and setRangeAxis(...) which are implemented in CategoryPlot and XYPlot now.

Regards,

DG.

Locked