how to add a colorbar to a plot
how to add a colorbar to a plot Question: i have a dataframe with two columns The one is dif and the other is sza i have made the following scatter plot x = df[‘sza’] y = df[‘dif’] # Calculate the point density xy = np.vstack([x,y]) z = gaussian_kde(xy)(xy) fig, ax = plt.subplots() ax.scatter(x, y, …