py plot y axis limit code example Example: set axis plt python Click to copyfrom matplotlib import pyplot as plt plt.axis([0, 10, 0, 20])