How to make Scatter Graph appear clearer

Question:

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!

Asked By: ViB

||

Answers:

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

Answered By: Mephisto
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.