Matplotlib Colormaps
Program 1 import matplotlib.pyplot as plt import numpy as np x = np.array([5,7,8,7,2,17,2,9,4,11,12,9,6]) y = np.array([99,86,87,88,111,86,103,87,94,78,77,85,86]) colors = np.array([10,20,25,35,50,60,75,80,90,100,110,120,130]) plt.scatter(x,y,cmap=’BuPu’,c=colors) plt.colorbar() plt.xlabel(“Car Age”) plt.ylabel(“Milage”) plt.legend() plt.show() #x1 = np.array([2,2,8,1,15,8,12,9,7,3,11,4,7,14,12]) # y1 = np.array([100,105,84,105,90,99,90,95,94,100,79,112,91,80,85]) #...

