title: Adding error bars to seaborn scatter plot (when a line plot is combined)
body: <p>I have a scatter + lineplot in seaborn, created in this way:</p>
  <pre class="lang-py prettyprint-override"><code>import seaborn as sns
  import pandas as pd
  
  # load sample data from seaborn
  flights = sns.load_dataset('flights')
  
  fig_example = plt.figure(figsize=(10, 10))
  sns.lineplot(data=flights, x=&quot;year&quot;, y=&quot;passengers&quot;, hue=&quot;month&quot;)
  sns.scatterplot(data=flights, x=&quot;year&quot;, y=&quot;passengers&quot;, hue=&quot;month&quot;,legend=False)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/owxI6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/owxI6.png" alt="enter image description here" /></a></p>
  <p>Now, I want to add error bars. For example, the first entry point is (year=1949, passengers=112). I want to add for this specific item, an std. For example: += 5 passengers. How can I do it?</p>
  <p>This question does not answer my question: <a href="https://stackoverflow.com/questions/56203420/how-to-use-custom-error-bar-in-seaborn-lineplot">How to use custom error bar in seaborn lineplot?</a></p>
  <p>I need to add it to scatterplot. Not to the line plot.</p>
  <p>When I try this command:</p>
  <pre><code>ax = sns.scatterplot(x=&quot;x&quot;, y=&quot;y&quot;, hue=&quot;h&quot;, data=gqa_tips, s=100, ci='sd', err_style='bars')
  </code></pre>
  <p>It fails:</p>
  <pre><code>AttributeError: 'PathCollection' object has no property 'err_style'
  </code></pre>
  <p>Thanks.</p>