# Plots.jl annotations location in a type @recipe

**URL:** <https://discourse.julialang.org/t/plots-jl-annotations-location-in-a-type-recipe/13941>\
**Category:** Visualization\
**Tags:** plots, recipe\
**Created:** [August 23, 2018, 2:16pm UTC](https://discourse.julialang.org/t/plots-jl-annotations-location-in-a-type-recipe/13941 "2018-08-23T14:16:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![floswald](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/floswald/32/195_2.png) [@floswald](https://discourse.julialang.org/u/floswald)\
**Post date:** [August 23, 2018, 2:16pm UTC](https://discourse.julialang.org/t/plots-jl-annotations-location-in-a-type-recipe/13941/1 "2018-08-23T14:16:28Z")

</div>

hi all,

(was posted on Plots.jl gitter)

how can I specify the annotations position when i want to label points inside a type recipe? i found that adding this to my `@series` block works: `series_annotations := ["$i" for i in 1:10]` but the annotations are barely readable. what’s the `recipe` way to tell it to put the annotation slightly left/right of the actual point?

```julia
struct tester
    m :: Matrix
end

@recipe function f(tt::tester)
    n,m = size(tt.m)
    for i in 1:n
        @series begin
            linetype --> :path
            series_annotations := ["$i" for i in 1:m]
            (1:m,tt.m[i,:])
        end
    end
end

julia> t = tester(rand(2,10))
tester([0.221619 0.803037 … 0.431155 0.57254; 0.312785 0.980244 … 0.0773248 0.268716])

julia> plot(t)

```

 ![test](https://global.discourse-cdn.com/julialang/original/3X/4/e/4ef800d9055f43e1e823b3c2a82efa1f65b8a9e2.png)

---

<div class="post-metadata">

**Author:** ![BambOoxX](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bambooxx/32/22179_2.png) [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Post date:** [September 9, 2021, 8:27am UTC](https://discourse.julialang.org/t/plots-jl-annotations-location-in-a-type-recipe/13941/2 "2021-09-09T08:27:20Z")

</div>

Hello, this is surely very late, yet I had the same issue yesterday, and after some tests here is a syntax that works with current versions of `Plots` and `RecipesBase`

```julia
        @series begin
            seriestype := :scatter
            markeralpha := 0
            series_annotations := [("$i", 6, :right, :top, :red, 8) for i in 1:m]
            1:m, tt.m[i,:]
        end

```
