0

Hi I am trying to set the space between horizontal grid lines of y axis to 0.3 and vertical grid lines of x axis to 0.4 in XY Plot.

I have tried setting the width and margins but,I see no difference in horizontal and vertical grid lines of xy plot.

please can u let me know how can we achieve it.

thanks.

1 Answers1

1

The grid line spacing follows TickUnit interval of the corresponding axis. You can change the values as shown here and below.

domain.setTickUnit(new NumberTickUnit(0.4));
range.setTickUnit(new NumberTickUnit(0.3));
Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045