import numpy as np import matplotlib.pyplot as plt x = np.arange(101) y = x**(1./3) fig, ax = plt.subplots() ax.plot(x, y) ax.set_xticks(np.arange(0,101,20)) ax.set_xticks(np.arange(0,101,10), minor=True) ax.set_yticks([]) ax.tick_params(labelsize=15, colors='r')