title: How to set different colors for specific columns in matplotlib bar chart?
body: <p>I created a bar chart of 10 football clubs with highest and 10 with the lowest FIFA ratings.
  I plotted both on the same figure this way:</p>
  <pre><code>grouped_top=df.groupby(&quot;club_name&quot;)[&quot;overall&quot;].mean().reset_index().sort_values(&quot;overall&quot;,ascending=False).head(10)
  grouped_bottom=df.groupby(&quot;club_name&quot;)[&quot;overall&quot;].mean().reset_index().sort_values(&quot;overall&quot;,ascending=False).tail(10)
  unioned=pd.concat([grouped_top,grouped_bottom])
  unioned.plot(kind=&quot;bar&quot;,x=&quot;club_name&quot;,y=&quot;overall&quot;,xlabel=&quot;&quot;,figsize=(15,5))
  plt.show()
  </code></pre>
  <p>The result is this:
  <img src="https://i.stack.imgur.com/Ucw5P.png" alt="[image]" /></p>
  <p>But I want to top 10 and bottom 10 columns to have different colors. For example first 10 columns to be red and last 10 blue color. Also I want my chart to have a legend that explains which color corresponds to which.
  I hope there is a way of doing this.</p>