set x axis pyplot code example
Example 1: add x axis label python
plt.xlabel("X axis label")
Example 2: set axis plt python
from matplotlib import pyplot as plt
plt.axis([0, 10, 0, 20])
plt.xlabel("X axis label")
from matplotlib import pyplot as plt
plt.axis([0, 10, 0, 20])