question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add alpha support for scatter plots

See original GitHub issue

Describe the solution you’d like When I’m plotting scatter plots (such as PCA), oftentimes there is a bunch of data. By using the alpha parameter on matplotlib (also available through the pandas plotting interface), it allows you to discern the data and amount of overlapping.

Is your feature request related to a problem? Please describe. In general, I think an alpha parameter to any scatter plot visualizations (PCADecomposition) would be awesome. It would also be inline with what pandas plotting provides.

Examples Seaborn scatter plots come with a slight alpha applied. But you can use scatter_kws={'alpha':0.3} to set it. In pandas or matplotlib you just pass alpha=0.3.

Jake’s book also has alpha turned on when plotting scatter plots. See https://jakevdp.github.io/PythonDataScienceHandbook/05.09-principal-component-analysis.html

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
mattharrisoncommented, Jun 14, 2018

For alpha= vs scatter_kws, I think it depends on whether you want to tie the implementation to matplotlib. The former is generic, the latter indicates (to me at least) that these are the parameters that will be passed into matplotlib.

0reactions
bbengfortcommented, Aug 10, 2018

#554 adds alpha to the yellowbrick.contrib.ScatterVisualizer. Need to:

  • open issue for scatter plot mixin
  • open issue for non alpha legend mechanism
  • open issue for other scatter visualizers that could use alpha params.

Then we can close this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Individual alpha values in scatter plot - python
I'm wondering if it is possible to have individual alpha values for each point to be plotted using the scatter function of Matplotlib....
Read more >
Changing Transparency for Scatter Plot using alpha - YouTube
Published on Mar 28, 2020:In this video, we will learn to change the transparency for the scatter plot using the alpha option.
Read more >
How to use alphadata for markers in scatter plot so each ...
I would like the result to be a scatter plot with the i-th marker located at [X(i),Y(i)] and colored by the value in...
Read more >
A Complete Guide to Scatter Plots
In order to create a scatter plot, we need to select two columns from a data table, one for each dimension of the...
Read more >
Transparent Scatterplot Points in Base R & ggplot2
In order to adjust the alpha of our points, we have to install and load the scales add-on package in R. install.packages("scales") #...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found