# I'm blind again, how to supress subplot annotations?

**URL:** <https://discourse.julialang.org/t/im-blind-again-how-to-supress-subplot-annotations/67270>\
**Category:** New to Julia\
**Tags:** plotting\
**Created:** [August 29, 2021, 7:29am UTC](https://discourse.julialang.org/t/im-blind-again-how-to-supress-subplot-annotations/67270 "2021-08-29T07:29:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![trilobit](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@trilobit](https://discourse.julialang.org/u/trilobit)\
**Post date:** [August 29, 2021, 7:29am UTC](https://discourse.julialang.org/t/im-blind-again-how-to-supress-subplot-annotations/67270/1 "2021-08-29T07:29:15Z")

</div>

I know it is possible because I’ve made it a long time ago, but I can’t remember - how  
and the code is deleted. ☹  
But how can I supress the annotation in the right subplot?

```julia
using Plots
data=rand(50)
leer=zeros(50)

plot([leer data], layout=(1,2), leg=:false, grid=:off, ann=(5,0,text("Sample text")))

```

Many thanks for tips.

---

<div class="post-metadata">

**Author:** ![gustaphe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustaphe/32/18174_2.png) [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Post date:** [August 29, 2021, 8:30am UTC](https://discourse.julialang.org/t/im-blind-again-how-to-supress-subplot-annotations/67270/2 "2021-08-29T08:30:01Z")

</div>

```julia
plot(
    plot(
        ...;
        annotation
    ),
    plot(
        ...
    );
    common,
    layout,
)

```

---

<div class="post-metadata">

**Author:** ![zdenek\_hurak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zdenek_hurak/32/53118_2.png) [@zdenek\_hurak](https://discourse.julialang.org/u/zdenek_hurak)\
**Post date:** [August 29, 2021, 8:39am UTC](https://discourse.julialang.org/t/im-blind-again-how-to-supress-subplot-annotations/67270/3 "2021-08-29T08:39:17Z")

</div>

Please next time [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757)

> Choose a **descriptive title** that captures the key specific part of your question, eg _“plots with multiple axes”_ instead of something generic like _“help me with plotting”_ . Make use of tags and categories; you can **edit** those and the title **after posting** , too. These will make it more likely that your question will be seen by the people who can potentially help.

---

<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:** [August 29, 2021, 9:22am UTC](https://discourse.julialang.org/t/im-blind-again-how-to-supress-subplot-annotations/67270/4 "2021-08-29T09:22:10Z")

</div>

@trilobit, with `annotate!()` one can direct the annotations to each subplot.  
Example for a 2x2 layout:

```julia
using Plots
data = rand(4, 50)
p = plot(data, layout=(2,2), leg=:false, grid=:off, ylims=(0,1.2))
annotate!(p[1], 2.5, 1.1, text("subplot-1"))
annotate!(p[4], 2.5, 1.1, text("subplot-4"))

```

---

<div class="post-metadata">

**Author:** ![trilobit](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@trilobit](https://discourse.julialang.org/u/trilobit)\
**Post date:** [August 29, 2021, 10:58am UTC](https://discourse.julialang.org/t/im-blind-again-how-to-supress-subplot-annotations/67270/5 "2021-08-29T10:58:12Z")

</div>

Thanks a lot.  
That’s exact what I’m looking for. I had another solution in my mind, but I  
can’t remember. However…an example that I want:

 ![img](https://global.discourse-cdn.com/julialang/original/3X/d/7/d74e8d7c1beee49baede46bfdd47ba666ce4120f.webp)
