import matplotlib.pyplot as plt
import numpy as np
xpoints = np.array([0, 3, 5, 6, 8])
ypoints = np.array([0, 40, 90, 250, 330])
plt.plot(xpoints, ypoints, marker='o', linestyle='dotted', color='r')
plt.title("Profits forecasting")
plt.xlabel("No of Items")
plt.ylabel("Profits in Thousands")
plt.show()