Lokesh
Lokesh

Reputation: 3112

Scatter plot in pandas different from that of Matplotlib

Here's the result of scatter plot using Matplotlib enter image description here

And now here's the result of calling scatter plot using Pandas enter image description here

Is there bug in Pandas scatter function or is it supposed to work like this?

Upvotes: 1

Views: 137

Answers (1)

Robin Spiess
Robin Spiess

Reputation: 1480

I think the grey area you see is the boundary of each point. Use the argument edgecolors='none' or edgecolors='black' to get the same result as you get with matplotlib (see also http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.scatter)

Upvotes: 3

Related Questions