set range of axes matplotlib code example
Example 1: set axis plt python
from matplotlib import pyplot as plt
plt.axis([0, 10, 0, 20])
Example 2: plot bounds python
ax.set_ylim([-1, 0])
from matplotlib import pyplot as plt
plt.axis([0, 10, 0, 20])
ax.set_ylim([-1, 0])