Discussion:
[Matplotlib-users] Blurry Scatter Plot
albad17
2015-08-02 22:51:18 UTC
Permalink
For some reason when I plot a scatter plot like this:

plt.scatter(diamonds['carat'], diamonds['price'], color = 'black', alpha =
0.05)
plt.xlabel('Carat')
plt.ylabel('Price')

I get a blurry scatter plot as shown in the image
<Loading Image...>

I want something more like this:
<Loading Image...>

Any help would be greatly appreciated.

Thanks



--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Blurry-Scatter-Plot-tp45995.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Thomas Caswell
2015-08-03 01:39:51 UTC
Permalink
Remove the `alpha=0.05` kwargs which is setting the alpha to be almost
transparent.

Tom
Post by albad17
plt.scatter(diamonds['carat'], diamonds['price'], color = 'black', alpha =
0.05)
plt.xlabel('Carat')
plt.ylabel('Price')
I get a blurry scatter plot as shown in the image
<
http://matplotlib.1069221.n5.nabble.com/file/n45995/matplotlib_scatter.png
<http://matplotlib.1069221.n5.nabble.com/file/n45995/Scatter_Good.png>
Any help would be greatly appreciated.
Thanks
--
http://matplotlib.1069221.n5.nabble.com/Blurry-Scatter-Plot-tp45995.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
ChaoYue
2015-08-03 07:39:34 UTC
Permalink
You may need to remove the alpha=0.05 or set it as 1 I think.

Chao

On Mon, Aug 3, 2015 at 12:51 AM, albad17 [via matplotlib] <
Post by albad17
plt.scatter(diamonds['carat'], diamonds['price'], color = 'black', alpha =
0.05)
plt.xlabel('Carat')
plt.ylabel('Price')
I get a blurry scatter plot as shown in the image
Any help would be greatly appreciated.
Thanks
------------------------------
If you reply to this email, your message will be added to the discussion
http://matplotlib.1069221.n5.nabble.com/Blurry-Scatter-Plot-tp45995.html
To start a new topic under matplotlib - users, email
To unsubscribe from matplotlib, click here
<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2&code=Y2hhb3l1ZWpveUBnbWFpbC5jb218MnwxMzg1NzAzMzQx>
.
NAML
<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
--
please visit:
http://www.globalcarbonatlas.org/
***********************************************************************************
Chao YUE
postdoc at LGGE
LGGE, BP 96, 38402 St Martin d'HÚres Cedex, France
************************************************************************************




--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Blurry-Scatter-Plot-tp45995p45997.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
Loading...