set axis values matplotlib code example
Example 1: set axis plt python
from matplotlib import pyplot as plt
plt.axis([0, 10, 0, 20])
Example 2: how to select axis value in python
plt.xticks(np.arange(x.min(), x.max(), 2))
from matplotlib import pyplot as plt
plt.axis([0, 10, 0, 20])
plt.xticks(np.arange(x.min(), x.max(), 2))