# Truncated labels in StatsPlots groupedbar plot

**URL:** <https://discourse.julialang.org/t/truncated-labels-in-statsplots-groupedbar-plot/46451>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [September 11, 2020, 12:01pm UTC](https://discourse.julialang.org/t/truncated-labels-in-statsplots-groupedbar-plot/46451 "2020-09-11T12:01:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Post date:** [September 11, 2020, 12:01pm UTC](https://discourse.julialang.org/t/truncated-labels-in-statsplots-groupedbar-plot/46451/1 "2020-09-11T12:01:08Z")

</div>

In the plot below, the first and last characters of the labels on the x-axis are truncated. Is there any way around this aside from adding spaces?

Thank you

```julia
using StatsPlots, DataFrames
pyplot()
df = DataFrame(a=repeat(["label1","label2"], outer=2),b=repeat(["a","b"], inner=2), 
     c=rand(4))
@df df groupedbar(:a, :c, group=:b)

```

```julia
  [a93c6f00] DataFrames v0.21.7
  [f3b207a7] StatsPlots v0.14.13

```

Update: [https://github.com/JuliaPlots/StatsPlots.jl/issues/378](https://github.com/JuliaPlots/StatsPlots.jl/issues/378)
