When you create a plot with matplotlib.pyplot (plt), and call the grid with plt.grid(), from what I understand a call is made to plt.Locator class. I was wondering if there is a simple way, through some parameter, that changes the default behaviour to always make the grid mode dense or rare. I have checked the documentation for this class but didn't catch anything. I know how to set the ticks through .set_xticks and .set_xticklocations, my question is if the default behvaiour can be changed. Continue reading...