title: Seaborn lineplot with min & max as a shaded area
body: <p>I'm trying to plot a team's score in a competition over time, compared to the max and the min of teams' scores at that time. I have a <a href="https://i.stack.imgur.com/IX3vd.png" rel="nofollow noreferrer">working example with min &amp; max as lines</a>.</p>
  
  <p>However, I would prefer showing the min and the max via a shaded area, a bit like <a href="https://i.stack.imgur.com/Q3Dhd.png" rel="nofollow noreferrer">this picture</a> but without the average of the min and max being plotted (the blue line).</p>
  
  <p>Can someone more competent in Seaborn or matplotlib help me out?</p>
  
  <p>I've unsuccessfully tried:</p>
  
  <ul>
  <li>stopping the min &amp; max's average line from being calculated at all</li>
  <li>hiding the min &amp; max's average line (e.g. reducing its size to 0)</li>
  <li>tweaking Seaborn's confidence interval "ci" as per <a href="https://stackoverflow.com/questions/37767719/timeseries-plot-with-min-max-shading-using-seaborn">this answer</a></li>
  </ul>
  
  <p>I have a preference for using Seaborn because of its nice "look &amp; feel" but at this point, I'll take whatever works.</p>
  
  <hr>
  
  <p>Dataset shown on the graph</p>
  
  <pre><code>      timestamp group    score
  4  1.563890e+09    13    0.000
  0  1.563890e+09   min    0.000
  0  1.563890e+09   max  100.000
  4  1.563890e+09    13    0.000
  0  1.563890e+09   min    0.000
  0  1.563890e+09   max   99.675
  4  1.563890e+09    13    0.000
  0  1.563890e+09   min    0.000
  0  1.563890e+09   max   99.675
  0  1.563890e+09    13   39.101
  0  1.563890e+09   min    0.000
  0  1.563890e+09   max   74.573
  0  1.563890e+09    13   39.101
  0  1.563890e+09   min   37.853
  0  1.563890e+09   max   74.573`
  </code></pre>
  
  <hr>
  
  <p>code of first screenshot (scoreboard is a larger pandas dataframe)</p>
  
  <pre class="lang-py prettyprint-override"><code>s = scoreboard[(scoreboard.group == 13) | (scoreboard.group == "max") | (scoreboard.group == "min")]
  sns.lineplot(x="timestamp", y="score", hue="group", data=s, marker="o")
  </code></pre>
  
  <hr>
  
  <p>code of second screenshot (scoreboard is a larger pandas dataframe)</p>
  
  <pre class="lang-py prettyprint-override"><code>s = scoreboard[(scoreboard.group == 13)]
  s0 = scoreboard[(scoreboard.group == "max") | (scoreboard.group == "min")]
  
  sns.lineplot(x="timestamp", y="score", data=s0, marker="o")
  sns.lineplot(x="timestamp", y="score", data=s, marker="o")
  </code></pre>
  
  <hr>