title: Print weighted color palette in matplotlib
body: <p>I understand that one can print a color palette (equally weighted) with the following code:</p>
  <pre><code>import matplotlib.pyplot as plt
  blue_red = [(0,0,255), (255, 0,0)]  # or any other list of RGB tuples
  plt.imshow([blue_red])
  
  </code></pre>
  <p>However, how could I show weighted palettes? For example if I wanted to weight 90% blue and 10% red instead of 50-50?</p>