# Plotting Multiple Boxplots

**URL:** <https://discourse.julialang.org/t/plotting-multiple-boxplots/19953>\
**Category:** New to Julia\
**Tags:** plotting\
**Created:** [January 23, 2019, 12:25am UTC](https://discourse.julialang.org/t/plotting-multiple-boxplots/19953 "2019-01-23T00:25:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathan\_Ortega](https://avatars.discourse-cdn.com/v4/letter/n/f1d935/32.png) [@Nathan\_Ortega](https://discourse.julialang.org/u/Nathan_Ortega)\
**Post date:** [January 23, 2019, 12:25am UTC](https://discourse.julialang.org/t/plotting-multiple-boxplots/19953/1 "2019-01-23T00:25:15Z")

</div>

I’m trying to generate two boxplots side by side in the same graph but I’m running into an unexpected issue. When trying to run the code below i get the following error:

“LoadError: BoundsError: attempt to access 1-element Array{Float64,1} at index [2]”

Here’s the code:

```julia
using Plots

boxplot(rand(10)) # this renders fine
boxplot!(rand(10)) # this line causes it to crash

```

---

<div class="post-metadata">

**Author:** ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Post date:** [January 23, 2019, 5:57am UTC](https://discourse.julialang.org/t/plotting-multiple-boxplots/19953/2 "2019-01-23T05:57:01Z")

</div>

It’s a known issue, reported here  
[https://github.com/JuliaPlots/StatPlots.jl/issues/198](https://github.com/JuliaPlots/StatPlots.jl/issues/198)
