set_auto_n

GridLines.set_auto_n(auto_n)

Set the number of (auto) gridlines to draw in the currently visible extent.

Note: this is an approximate value!

Parameters:

auto_n (int or tuple of int) – The (rough) number of gridlines to use when evaluating the automatic grid-spacing. To use different numbers of gridlines in each direction, provide a tuple of ints, e.g.: (n_lon, n_lat).