title: Set colors in Matplotlib.pie by label name
body: <p>I have created a large matrix of pie plots using a function that runs through a datafrane. I am only plotting in the pie charts two variables. When one of the variables is not present in the specific data, matplotlib automatically switches the colors. See sample picture below.</p>
  
  <p>How would I make sure the colors stay consistent based on values? Would I manipulate the colors argument in my function?</p>
  
  <p>my def code that I run the data through</p>
  
  <pre><code>#function to make matrix
  def pie(v, l, color=None):
      plt.pie(v, labels=l.values, colors = ????, autopct='%0.f')
  
  #function being called for data - l='coverage' 
  g = sns.FacetGrid(market_covered_sum, col="mkt_mcap_decile", row="market", 
                    margin_titles=True)
  g.map(pie, "MKT_Cap_mn", "coverage").set_axis_labels(" ", " ")
  </code></pre>
  
  <p>I want to keep the colors consistent, and change them to a color code once I can keep consistent.
  <a href="https://i.stack.imgur.com/51wf0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/51wf0.png" alt="enter image description here"></a></p>