title: How can I fix legend color issue in Bar graph in Python?
body: <p>I have a problem about defining many color in legend part of bar graph.</p>
  <p>After I've done some essential process, I draw a figure by using the code shown below.</p>
  <pre><code>ax = df.plot(kind='bar', stacked=True,figsize=(13,10))
  plt.title('Title List', fontsize=20) 
  leg = ax.legend(loc='center right', bbox_to_anchor=(1.3, 0.5), ncol=1)
  plt.tight_layout()
  plt.savefig('images/image1.png', bbox_inches = &quot;tight&quot;)  
  plt.show()
  </code></pre>
  <p>When I run the code, some colors are the same.</p>
  <p>How can I define unique colors in legend part?</p>
  <p>Here is the screenshot
  <a href="https://i.stack.imgur.com/5Y4My.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5Y4My.png" alt="enter image description here" /></a></p>