title: Set Seaborn bar color based on values not included in the plot
body: <p>I have a pandas dataframe <code>df</code> with columns <code>x</code> (categorical), <code>y</code>, and <code>z</code> (both floats).</p>
  
  <p>Here is my bar plot.</p>
  
  <pre><code>sns.barplot(data=df, x=x, y=y)
  </code></pre>
  
  <p>How can I set a color palette for the bars based on the values of the <code>z</code> column? I would like to set a Matplotlib style palette like <code>magma</code> or <code>RdYlBu</code>. Basically, like setting the <code>hue</code> argument, but with a scalar variable.</p>
  
  <p>Thanks in advance!</p>