In Matplotlib, what axis attribute specifies the spacing between ticks? : <p>When generating a Matplotlib line or scatter plot, what axis attribute specifies the spacing between ticks?  I do not want to <a href="https://stackoverflow.com/a/12608937/3585557">explicitly specify where each tick should be</a> as prompted by <a href="https://stackoverflow.com/q/12608788/3585557">this related question</a></p>

<pre><code>ax.ticks(np.arange(-100, 100, 5))
</code></pre>

<p>What is the matplotlib axis attribute that controls the tick spacing?  It should behave something like the following.</p>

<pre><code>ax.set_x_tick_spacing(5)
</code></pre>

<p>This would use the same default <code>xlim</code> and origin point (usually 0) as the default settings.</p>
