# Makie errorbars in legend look awkward

**URL:** <https://discourse.julialang.org/t/makie-errorbars-in-legend-look-awkward/104832>\
**Category:** Visualization\
**Tags:** cairomakie\
**Created:** [October 11, 2023, 7:32am UTC](https://discourse.julialang.org/t/makie-errorbars-in-legend-look-awkward/104832 "2023-10-11T07:32:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [October 11, 2023, 11:17am UTC](https://discourse.julialang.org/t/makie-errorbars-in-legend-look-awkward/104832/2 "2023-10-11T11:17:06Z")

</div>

> it looks more like a line

It is a line 🙂

`errorbars` has no specific legend overload so it just shows the one for the underlying `lines`. One could build a better one in principle, for example:

```julia
f = Figure()
Legend(f[1, 1], [[
    LineElement(linepoints = [Point2f(0.5, 0), Point2f(0.5, 1)]),
    MarkerElement(points = [Point2f(0.5, 0), Point2f(0.5, 1)], marker = :hline, markersize = 10),
]], ["errorbar"])
f

```

![image](https://global.discourse-cdn.com/julialang/original/3X/6/d/6d2a8bd766706bd240efd926128f81e3d32f2496.png)

---

_[View the full topic](https://discourse.julialang.org/t/makie-errorbars-in-legend-look-awkward/104832)._
