Program to Drawing Line chart and Bar chart using Matplotlib

import matplotlib.pyplot as plt
x = ["Jan", "Feb", "Mar", "Apr", "May"]
y = [10, 20, 15, 25, 30]
plt.subplot(1, 2, 1)
plt.plot(x, y, marker='x')
plt.title("Line Chart")
plt.subplot(1, 2, 2)
plt.bar(x, y, color='g')
plt.title("Bar Chart")
plt.show()