# Shift series annotations in a plot for readability

**URL:** <https://discourse.julialang.org/t/shift-series-annotations-in-a-plot-for-readability/74787>\
**Category:** General Usage\
**Tags:** plotting, plots\
**Created:** [January 18, 2022, 8:43am UTC](https://discourse.julialang.org/t/shift-series-annotations-in-a-plot-for-readability/74787 "2022-01-18T08:43:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fph](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fph/32/17159_2.png) [@fph](https://discourse.julialang.org/u/fph)\
**Post date:** [January 18, 2022, 8:43am UTC](https://discourse.julialang.org/t/shift-series-annotations-in-a-plot-for-readability/74787/1 "2022-01-18T08:43:22Z")

</div>

Using Plots, series annotations are displayed _exactly_ on top of the data points; this does not please my eye. Example:

```julia
using Plots
plot([1,2,3], [3,1,2], series_annotations=["a", "b", "c"])

```

![img](https://global.discourse-cdn.com/julialang/original/3X/a/d/ad281a0cdd4a6f6920f4e6b91389ba26ca0b9655.png)

Is there a way to shift the text a little on the left/right, so that the markers are visible separately? I have tried the hack of adding a few spaces in front of the string (`" a"`), but they seem to be ignored.

---

<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:** [January 18, 2022, 9:03am UTC](https://discourse.julialang.org/t/shift-series-annotations-in-a-plot-for-readability/74787/2 "2022-01-18T09:03:23Z")

</div>

The simple way is to use `annotate!()`:

```julia
using Plots
x, y = [1,2,3], [3,1,2]
plot(x, y, m=:circle)
annotate!(x, y, ["a", "b", "c"], :bottom)

```

and if needed, you can shift `x` and `y` to your liking.

---

<div class="post-metadata">

**Author:** ![fph](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fph/32/17159_2.png) [@fph](https://discourse.julialang.org/u/fph)\
**Post date:** [January 18, 2022, 9:14am UTC](https://discourse.julialang.org/t/shift-series-annotations-in-a-plot-for-readability/74787/3 "2022-01-18T09:14:19Z")

</div>

> [@rafael.guerra](#):
>
> The simple way is to use `annotate!()` :

Thanks! I did not know this form with three vectors worked, that makes sense. I added `x*1.08` (since I am using a logarithmic scale) and `:right` and it works like a charm.
