Home > Net >  How to make Scatter Graph appear clearer
How to make Scatter Graph appear clearer

Time:08-13

I am new to python and i was wondering if i could make my scatter graph appear clearer than it is currently: enter image description here

My code is :

plot.scatter(data[Var 1],data[Var 2])
plot.shows()

I believe the data I am using might also be an issue as there is almost a million records. Any tips would be appreciated!

CodePudding user response:

You could decrease the size of the markers to make the plot a little clearer.

pyplot.scatter() has the parameter s to adjust the size:

s: float or array-like, shape (n, ), optional: The marker size in points**2

But with a million records, your dataset might just be too large to get a clear graph. If the data allows, it might help to only plot a random subset

  • Related