select range of y axis in matplot lib 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])