title: StatsPlots Boxplot decrease width of boxes
body: <p>I have a boxplot in Julia, that I created using <code>StatsPlot</code>s boxplot:</p>
  <pre><code>boxes = -0.002:0.0001:0.0012
  boxed = [[sum([1 for tuple ∈ data if tuple.y &gt; box-0.000125 &amp;&amp; tuple.y ≤ box+0.000125]) for box ∈ boxes] for data in datas]
  boxplot(repeat([box for box ∈ boxes], outer=size(boxed)[1]), [(boxed...)...]; outliers=false)
  </code></pre>
  <p>The current result looks like this:
  <a href="https://i.stack.imgur.com/5IgFC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5IgFC.png" alt="bad boxplot" /></a>
  which is obviously hideous. I need to reduce the width of the boxes to a ~20000th of what it currently is. I can achieve this by scaling the x axis accordingly:</p>
  <pre><code>boxplot(repeat([box*20000 for box ∈ boxes], outer=size(boxed)[1]), [(boxed...)...]; outliers=false)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/YlzT9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YlzT9.png" alt="better boxplot" /></a>
  but then the x-axis has wrong values.</p>
  <p>The help of the boxplot command sadly doesn't specify such an option:</p>
  <pre><code>help?&gt; boxplot
  search: boxplot boxplot! groupedboxplot groupedboxplot!
  
    boxplot(x, y)
    boxplot!(x, y)
  
    Make a box and whisker plot.
  
    Keyword arguments
    ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  
      •  notch: Bool. Notch the box plot? (false)
  
      •  range: Real. Values more than range*IQR below the first quartile or above the third quartile are shown as outliers (1.5)
  
      •  outliers: Bool. Show outliers? (true)
  
      •  whisker_width: Real or Symbol. Length of whiskers (:match)
  
    Example
    ≡≡≡≡≡≡≡≡≡
  
    julia&gt; using StatsPlots
    julia&gt; boxplot(repeat([1,2,3],outer=100),randn(300))
  </code></pre>
  <p>and I've already tried reasonable options like <code>boxwex</code>, <code>width</code> or <code>box_width</code>, which all didn't help. The <a href="https://github.com/JuliaPlots/StatsPlots.jl" rel="nofollow noreferrer">documentation</a> sadly also is of no help at all.</p>
  <p>How can I change the width of the boxes without changing the scale of the x axis?</p>
  <hr />
  <p>If, for some reason, you're interested, here's the content of the <code>boxed</code> array:</p>
  <pre><code>[[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 7, 26, 80, 170, 322, 486, 688, 817, 888, 849, 783, 732, 624, 500, 349, 232, 130, 49], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 28, 83, 181, 318, 491, 670, 761, 849, 843, 862, 799, 646, 481, 361, 225, 98, 50], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 8, 28, 80, 179, 322, 493, 660, 753, 803, 832, 823, 783, 657, 541, 367, 223, 121, 62], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 7, 23, 84, 171, 312, 463, 640, 778, 834, 820, 763, 752, 655, 518, 374, 244, 133, 52], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 21, 70, 169, 342, 527, 725, 808, 861, 857, 799, 688, 622, 523, 369, 232, 115, 41], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 9, 28, 76, 150, 301, 492, 660, 760, 823, 862, 790, 749, 646, 525, 352, 223, 116, 54], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 6, 21, 64, 165, 290, 434, 585, 771, 852, 847, 785, 739, 630, 535, 354, 230, 114, 42], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 4, 19, 76, 190, 337, 506, 680, 775, 851, 853, 816, 705, 588, 496, 388, 232, 127, 54]]
  </code></pre>
  <p>With that, the plot can be replicated as follows:</p>
  <pre><code>using StatsPlots
  boxes = -0.002:0.0001:0.0012
  boxed = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 7, 26, 80, 170, 322, 486, 688, 817, 888, 849, 783, 732, 624, 500, 349, 232, 130, 49], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 28, 83, 181, 318, 491, 670, 761, 849, 843, 862, 799, 646, 481, 361, 225, 98, 50], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 8, 28, 80, 179, 322, 493, 660, 753, 803, 832, 823, 783, 657, 541, 367, 223, 121, 62], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 7, 23, 84, 171, 312, 463, 640, 778, 834, 820, 763, 752, 655, 518, 374, 244, 133, 52], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 21, 70, 169, 342, 527, 725, 808, 861, 857, 799, 688, 622, 523, 369, 232, 115, 41], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 9, 28, 76, 150, 301, 492, 660, 760, 823, 862, 790, 749, 646, 525, 352, 223, 116, 54], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 6, 21, 64, 165, 290, 434, 585, 771, 852, 847, 785, 739, 630, 535, 354, 230, 114, 42], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 4, 19, 76, 190, 337, 506, 680, 775, 851, 853, 816, 705, 588, 496, 388, 232, 127, 54]]
  boxplot(repeat([box for box ∈ boxes], outer=size(boxed)[1]), [(boxed...)...]; outliers=false)
  </code></pre>