title: How to define the number of minor ticks in matplotlib config file
body: <p>Using one <code>Locator()</code> one can control the number of minor or major ticks on a matplotlib axes.</p>
  
  <p>For example :</p>
  
  <pre><code>plt.gca().yaxis.set_minor_locator(plt.MultipleLocator(1))
  </code></pre>
  
  <p>But the above line depends on the data you are plotting. </p>
  
  <p>I would like to know if there is a way to change the number of minor ticks from a matplotlib style file such as <code>matplotlibrc</code> (<a href="https://matplotlib.org/users/customizing.html" rel="nofollow noreferrer">https://matplotlib.org/users/customizing.html</a>). For example, you can manage the minor ticks style with:</p>
  
  <pre><code>xtick.minor.visible : True
  xtick.minor.width   : 2
  xtick.minor.size    : 5
  </code></pre>
  
  <p>But I do not know how to deal with the number of minor ticks.</p>