Remove Range Axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
a-bomb
Posts: 7
Joined: Tue Nov 21, 2006 9:49 pm

Remove Range Axis

Post by a-bomb » Tue Nov 21, 2006 10:00 pm

Is there a way to remove a single range axis on a XYPlot with multiple axis?

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 Nov 22, 2006 1:06 pm

I'd expect that you could update the dataset-to-axis mappings so that nothing is using the axis, then set the axis to null. Let me know if that doesn't work.
David Gilbert
JFreeChart Project Leader

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

a-bomb
Posts: 7
Joined: Tue Nov 21, 2006 9:49 pm

Post by a-bomb » Wed Nov 22, 2006 7:12 pm

Yes, that is exactly what I had come up with after further investigation and it works just fine. Thanks.

determen

Post by determen » Fri Aug 03, 2007 9:45 pm

how would you implement this?

a-bomb
Posts: 7
Joined: Tue Nov 21, 2006 9:49 pm

Post by a-bomb » Thu Aug 23, 2007 8:08 pm

Change the dataset mapping to axis zero...
plot.mapDatasetToRangeAxis(index, null);

Set the range axis to null...
plot.setRangeAxis(index, null);

Extra option, set the dataset to null...
plot.setDataset(index, null);

Locked