I have written my code to create a scatter plot with a color bar on the right. But the color bar does not look right, in the sense that the color is too light to be mapped to the actual color used in the plot. I am not sure what is missing or wrong here. But I am hoping to get something similar to what's shown here:
CodePudding user response:
The colorbar uses the given alpha=.3
. In the scatterplot, many dots with the same color are superimposed, causing them to look brighter than a single dot.