# Plots.jl series with only errorbars?

**URL:** <https://discourse.julialang.org/t/plots-jl-series-with-only-errorbars/62053>\
**Category:** General Usage\
**Tags:** question, plotting\
**Created:** [May 29, 2021, 6:30pm UTC](https://discourse.julialang.org/t/plots-jl-series-with-only-errorbars/62053 "2021-05-29T18:30:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdubya](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdubya/32/394_2.png) [@pdubya](https://discourse.julialang.org/u/pdubya)\
**Post date:** [May 29, 2021, 6:30pm UTC](https://discourse.julialang.org/t/plots-jl-series-with-only-errorbars/62053/1 "2021-05-29T18:30:20Z")

</div>

Is it possible to make a plot with only error bars using Plots.jl? Alternatively, is it possible to style the errorbars independent of the associate :path or :scatter series?

basically want

```julia
x = collect(1:5); y = 5*x; e = log.(y)
plot(x, y, yerror = e)

```

but with no line connecting the mid-point of the error bars. Tried to set the linealpha to zero, but that also impacts how the errorbars are drawn.

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [May 29, 2021, 9:13pm UTC](https://discourse.julialang.org/t/plots-jl-series-with-only-errorbars/62053/2 "2021-05-29T21:13:37Z")

</div>

For a workaround, you may try this:

```julia
using Plots; gr()
default(lw=0.5, lc=:black, label=false)

x = collect(1:5); y = 5*x; e = log.(y)
dx = diff([extrema(x)...])[1]/150
plot([x'; x'], [(y-e)';(y+e)'])
plot!([x'.-dx; x'.+dx], [(y-e)';(y-e)'])
plot!([x'.-dx; x'.+dx], [(y+e)';(y+e)'])

```

 ![Plots_gr_error_bars_only](https://global.discourse-cdn.com/julialang/original/3X/4/1/41cbde30efd5ee624b7eb5660cee047a72700a07.png)

---

<div class="post-metadata">

**Author:** ![pdubya](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdubya/32/394_2.png) [@pdubya](https://discourse.julialang.org/u/pdubya)\
**Post date:** [May 30, 2021, 1:06pm UTC](https://discourse.julialang.org/t/plots-jl-series-with-only-errorbars/62053/3 "2021-05-30T13:06:57Z")

</div>

thanks, that’s a sufficient workaround.
