It appears that the grid lines for custom divisions are drawn for an axis even if axis.Visible = false. I noted this behavior specifically for the Y axes on a ScatterPlot (.NET).
Furthermore, the custom division grid lines persist even after calling axis.CustomDivisions.Clear() if the call occurs while axis.Visible = false.
I had to change the order of these statements in order to actually clear the plot gridlines.
Does not work:
axis.CustomDivisions.Clear();
axis.Visible = true;
Does work:
axis.Visible = true;
axis.CustomDivisions.Clear();
This seems very strange. I would expect no gridlines to be drawn for CustomDivisions on a non-visible axis. Is this a bug?