Example of scatterplot matrix
Is there such a function in matplotlib.pyplot?
There are many ways to create a scatterplot in R. The basic function is plot(x, y), where x and y are numeric vectors denoting the (x,y) points to plot.
1 Answer. The scatter plot matrix can be created by using DataFrame. plot. scatter() method.
For those who do not want to define their own functions, there is a great data analysis libarary in Python, called Pandas, where one can find the scatter_matrix() method:
from pandas.plotting import scatter_matrix df = pd.DataFrame(np.random.randn(1000, 4), columns = ['a', 'b', 'c', 'd']) scatter_matrix(df, alpha = 0.2, figsize = (6, 6), diagonal = 'kde')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With