Hi,
I need the vertical axis tick labels to show only integers(1, n). Right now, if the range is 1-5, the labels show up in increments of 0.1. I want it to be in increments of 1. Could comeone let me know how to do this,
Thanks,
Gopi
Visible Tick labels
RE: Visible Tick labels
Can you share it with us? I've got the same problem.
Tks,
Dogbert
Tks,
Dogbert
RE: Visible Tick labels
VerticalNumberAxis verticalAxis = (VerticalNumberAxis) plot.getAxis(Plot.VERTICAL_AXIS);
verticalAxis.setAutoTickValue(false);
verticalAxis.setAutoTickValue(false);
RE: Visible Tick labels
Ah...doesn't quite work for my situation.
I need whole numbers only, but need it to select appropriate ticks. Counting by ones doesn't hack it. I've tried modifying the patterns associated with getTickLabelFormatter(), but have yet to see it make a difference.
Thanks anyway,
Dogbert
I need whole numbers only, but need it to select appropriate ticks. Counting by ones doesn't hack it. I've tried modifying the patterns associated with getTickLabelFormatter(), but have yet to see it make a difference.
Thanks anyway,
Dogbert