# Plotting a mark in gr()

**URL:** <https://discourse.julialang.org/t/plotting-a-mark-in-gr/115642>\
**Category:** General Usage\
**Created:** [June 14, 2024, 11:51am UTC](https://discourse.julialang.org/t/plotting-a-mark-in-gr/115642 "2024-06-14T11:51:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![angeloaliano1](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Post date:** [June 14, 2024, 11:51am UTC](https://discourse.julialang.org/t/plotting-a-mark-in-gr/115642/1 "2024-06-14T11:51:13Z")

</div>

Dear all,  
I have the simple code in to plot two set of points:

```julia
using Plots 
gr(size = (1500, 1000),fmt=:png,ylims=(0,100), xlims=(0,100))
as = rand(1:100,100,2)
scatter(as[1:50,1], as[1:50,2],mc=:blue,ms=8,msw=0,markershape = :square,labels="Fornecedor primários")
scatter!(as[51:100,1], as[51:100,2],mc=:red,ms=8,msw=0,markershape = :square,labels="Fornecedor secundário")

```

At right of each point, I would like to print the number of each point (a small label). How can I do this?

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [June 14, 2024, 2:42pm UTC](https://discourse.julialang.org/t/plotting-a-mark-in-gr/115642/2 "2024-06-14T14:42:56Z")

</div>

Check out the docs for `annotate`
