Matplotlib GFG
import matplotlib.pyplot as plt
# data to display on plots
x = [3, 1, 3]
y = [3, 2, 1]
z = [1, 3, 1]
# Creating figure object
plt.figure()
# addind first subplot
plt.subplot(121)
plt.plot(x, y)
# addding second subplot
plt.subplot(122)
plt.plot(y,z)
knock