matplotlib, plt.ylim, plt.xlim

import matplotlib.pyplot as plt
plt.ylim(-10, 100)
plt.xlim(0, 25)

Назначение команды: