Color class in scatter_matrix with Pandas
<p>I have a matrix x with data, where each row has a class, and a vector y that indicates the type of class (it can be 0 or 1). I want to plot a scatter matrix of x where each type of class has a color (for example green for the 1's and blue for the 0's). I have tried with</p>

<pre><code>#Define the color for each class
c={0.0:'blue',1.0:'green'}  
#Plot it
df = pnd.DataFrame(x,columns=['PC1', 'PC2', 'PC3', 'PC4'])
pnd.scatter_matrix(df, alpha=0.2, figsize=(10, 10), color=c[y], diagonal='None')
</code></pre>

<p>Maybe it doesn't make any sense, but I'm new in Python and I don't now much about it. Thank you in advance</p>