Skip to content

Instantly share code, notes, and snippets.

@sylvchev
Last active December 17, 2015 08:49
Show Gist options
  • Save sylvchev/af8a6317448672387b8a to your computer and use it in GitHub Desktop.
Save sylvchev/af8a6317448672387b8a to your computer and use it in GitHub Desktop.
Scatter plot matrix for Iris dataset
from sklearn.datasets import load_iris
from numpy import array
from pandas import DataFrame
from pandas.tools.plotting import scatter_matrix
iris = load_iris()
df = DataFrame(iris.data, columns=iris.feature_names)
colors=array(50*['r']+50*['g']+50*['b'])
scatter_matrix(df, alpha=0.2, figsize=(10,10), color=colors)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment