# Makie scatter and errorbar combine in legend?

**URL:** <https://discourse.julialang.org/t/makie-scatter-and-errorbar-combine-in-legend/126424>\
**Category:** General Usage\
**Tags:** question\
**Created:** [February 28, 2025, 3:02pm UTC](https://discourse.julialang.org/t/makie-scatter-and-errorbar-combine-in-legend/126424 "2025-02-28T15:02:19Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [March 4, 2025, 4:58am UTC](https://discourse.julialang.org/t/makie-scatter-and-errorbar-combine-in-legend/126424/3 "2025-03-04T04:58:53Z")

</div>

I actually realized this is not what I wanted, because the error bar should be vertical.

For example, this looks wrong:

```julia
stairs([1,3,2,1]; label="x")
errorbars!((2:4) .- 0.5, [3,2,1], [2,3,4]; label="x")

axislegend()
current_figure()

```

with `merge=true`  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/d/e/decbadb88e4523abb0409fa557d97504644e02ff.png)

 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/0/701ffd845b79a264aefe4ce4fe3291b37af997be.png)

I suppose one can do this manually: [Makie errorbars in legend look awkward - #2 by jules](https://discourse.julialang.org/t/makie-errorbars-in-legend-look-awkward/104832/2)

---

_[View the full topic](https://discourse.julialang.org/t/makie-scatter-and-errorbar-combine-in-legend/126424)._
