Add alpha support for scatter plots
See original GitHub issueDescribe 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:
- Created 5 years ago
- Comments:9 (8 by maintainers)
Top GitHub Comments
For
alpha=
vsscatter_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.#554 adds
alpha
to theyellowbrick.contrib.ScatterVisualizer
. Need to:Then we can close this issue.