matplotlib change axis range code example
Example 1: plot bounds python
plt.xlim([25, 50])
Example 2: set axis plt python
from matplotlib import pyplot as plt
plt.axis([0, 10, 0, 20])
plt.xlim([25, 50])
from matplotlib import pyplot as plt
plt.axis([0, 10, 0, 20])