title: Python boxplot size of the IQR from 50% to 70%
body: <p>I would like to know if it's possible to put 70% of the population in the boxplot as in the red one?
  I know that Q3 - Q1 = IQR but don't know how this can help me.
  I'm using matplotlib to draw my boxplot.</p>
  <p><a href="https://i.stack.imgur.com/bcmdA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bcmdA.png" alt="boxplot_50_70" /></a></p>
  <pre><code>def boxplot_one_micro_competence(one_micro):
       &quot;&quot;&quot;
       show the boxplot corresponding to the list in parameters
       --------
       Parameters :
       one_micro - list - list of questions_id for the micro desired 
       --------
       &gt;&gt;&gt; boxplot_one_micro_competence(sere)
       &quot;&quot;&quot;    
       plt.subplots(figsize=(4, 4))
       plt.boxplot(df_micro_competence_groupe(one_micro)['score'], showcaps = False, whis = False, showfliers = False, labels = [one_micro])
  
       plt.ylim(-0.1, 4.1)
       plt.show()
  
  boxplot_one_micro_competence(sere)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/xlIim.png" rel="nofollow noreferrer">result</a></p>
  <p>My code look like that for the moment.</p>
  <p>Any help will be highly appreciated!</p>
  <p>if my explanation isn't clear enough let me know ;)</p>
  <p>Thank you!</p>