matplotlib ticks step code example Example: change x axis frequency start, end = ax.get_xlim() ax.xaxis.set_ticks(np.arange(start, end, stepsize))