import numpy as np
import matplotlib.pyplot as plt
def func(x, a, b, c):
y = a * x ** 2 + b * x + c
return y
x = np.linspace(0, 5, 300)
y = func(x, 1, 0.2, 2)
plt.figure(1)
plt.subplot(211)
plt.plot(x, y)
plt.subplot(212)
plt.plot(x, y)
plt.xlim(2, 3)
plt.show()