title: Seaborn Jointplot add colors for each class
body: <p><strong>I want to plot the correlation plot of 2 variables using seaborn <code>jointplot</code>. I have tried a lot of different things but I am not able to add colors to the points according to class.</strong></p>
  
  <p>Here is my code:</p>
  
  <pre><code>import numpy as np
  import seaborn as sns
  import matplotlib.pyplot as plt
  sns.set()
  
  X = np.array([5.2945 , 3.6013 , 3.9675 , 5.1602 , 4.1903 , 4.4995 , 4.5234 ,
                4.6618 , 0.76131, 0.42036, 0.71092, 0.60899, 0.66451, 0.55388,
                0.63863, 0.62504, 0.     , 0.     , 0.49364, 0.44828, 0.43066,
                0.57368, 0.     , 0.     , 0.64824, 0.65166, 0.64968, 0.     ,
                0.     , 0.52522, 0.58259, 1.1309 , 0.     , 0.     , 1.0514 ,
                0.7519 , 0.78745, 0.94873, 1.0169 , 0.     , 0.     , 1.0416 ,
                0.     , 0.     , 0.93648, 0.92801, 0.     , 0.     , 0.89594,
                0.     , 0.80455, 1.0103 ])
  
  y = np.array([ 93, 115, 107, 115, 110, 107, 102, 113,  95, 101, 116,  74, 102,
                 102,  78,  85, 108, 110, 109,  80,  91,  88,  99, 110, 108,  96,
                 105,  93, 107,  98,  88,  75, 106,  92,  82,  84,  84,  92, 115,
                 107,  97, 115,  85, 133, 100,  65,  96, 105, 112, 107, 107, 105])
  
  ax = sns.jointplot(X, y, kind='reg' )
  ax.set_axis_labels(xlabel='Brain scores', ylabel='Cognitive scores')
  plt.tight_layout()
  plt.show()
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/fdSpl.png" rel="noreferrer"><img src="https://i.stack.imgur.com/fdSpl.png" alt="enter image description here"></a></p>
  
  <p><strong>Now, I want to add colors for each point according to a class variable <code>classes</code>.</strong></p>