Home > Blockchain >  scatter plot color bar does not look right
scatter plot color bar does not look right

Time:03-25

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: enter image description 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.

One way to tackle this, is to create a scatterplot with colorbar without alpha

  • Related