title: How to plot min/max bars with a bar plot
body: <p>I'd like to adapt my plotting code in order to show min/max bar as depicted in the figure below:</p>
  <p>My code is:</p>
  <pre><code>from datetime import datetime, timedelta
  import numpy as np
  import pandas as pd
  import matplotlib.pyplot as plt
  import seaborn as sns
  sns.set_style(&quot;white&quot;)
  sns.set_style('darkgrid',{&quot;axes.facecolor&quot;: &quot;.92&quot;}) # (1)
  sns.set_context('notebook')
  
  Delay = ['S1', 'S2', 'S3', 'S4']
  
  Time = [87, 66, 90, 55]
  
  df = pd.DataFrame({'Delay':Delay,'Time':Time})
  print(&quot;Accuracy&quot;)
  
  display(df) # in jupyter
  
  fig, ax = plt.subplots(figsize = (8,6))
  
  x = Delay
  y = Time
  
  plt.xlabel(&quot;Delay&quot;, size=14)
  plt.ylim(-0.3, 100)
  width = 0.1
  
  for i, j in zip(x,y): 
      ax.bar(i,j, edgecolor = &quot;black&quot;,
          error_kw=dict(lw=1, capsize=1, capthick=1))  
      ax.set(ylabel = 'Accuracy')
  
  from matplotlib import ticker
  ax.yaxis.set_major_locator(ticker.MultipleLocator(10)) 
  plt.savefig(&quot;Try.png&quot;, dpi=300, bbox_inches='tight')
  </code></pre>
  <p>The code produce this figure:</p>
  <p><a href="https://i.stack.imgur.com/H7ycL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H7ycL.png" alt="enter image description here" /></a></p>
  <p>The min/max I want to add is for:</p>
  <pre><code>87 (60-90)
  66 (40-70)
  90 (80-93)
  55 (23-60)
  </code></pre>
  <p>Thanks in advance for help.</p>