title: Color a plot of n variables based on class label
body: <p>I have a dataset having frequencies of observations. I am doing exploratory data analysis. Following is the sample.</p>
  
  <pre><code>x1    x2    x3    x4    label
  15    10    1     2      0
  3     2     15    10     1
  0    1      10    11     1
  9    7      1     1      0
  </code></pre>
  
  <p>I want to plot a single plot using python that uses <code>x1,x2....xn</code> at <code>x-axis</code> and frequencies for every record at y axis but color codes the plot based on labels i.e blue for label 0 and red for label 1. Objective is to visualize if there is a relation between class label and values of variables. How to do that in python? Something like this. <a href="https://i.stack.imgur.com/VSOrS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VSOrS.png" alt="enter image description here"></a></p>
  
  <p>But it uses one variable on x-axis and another on y-axis. I want to use all variables on x-axis and their frequencies on Y-axis.</p>