# X positions of boxplot in StatsPlots

**URL:** https://discourse.julialang.org/t/x-positions-of-boxplot-in-statsplots/47314
**Category:** Visualization
**Created:** [September 26, 2020, 2:23pm UTC](https://discourse.julialang.org/t/x-positions-of-boxplot-in-statsplots/47314 "2020-09-26T14:23:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gideonsimpson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gideonsimpson/32/1928_2.png) [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)
#### Post date: [September 26, 2020, 2:23pm UTC](https://discourse.julialang.org/t/x-positions-of-boxplot-in-statsplots/47314/1 "2020-09-26T14:23:48Z")

</div>

This may be a naive way to be constructing them, but I am making boxplots in the following way:

```julia
using StatsPlots
x1 = randn(100); # A group
x2 = rand(100); # B group

boxplot(["A"], x1,label="")
boxplot!(["B"], x2,label="")

```

What I would like to do is to recover (or deliberately set) the x positions of the two boxplot centers so that I could add additional graphical annotations to the figure. It would also be desirable if I could figure out the entire width of the figure (from the left edge of A to the right edge of B).
