import matplotlib.pyplot as plt import numpy as np price = np.asarray([2.50, 1.23, 4.02, 3.25, 5.00, 4.40]) sales_per_day = np.asarray([34, 62, 49, 22, 13, 19]) profit_margin = np.asarray([20, 35, 40, 20, 27.5, 15]) plt.scatter(x=price, y=sales_per_day, s=profit_margin * 10) plt.show()