# Plotting marks with more one character in Gaston

**URL:** <https://discourse.julialang.org/t/plotting-marks-with-more-one-character-in-gaston/84107>\
**Category:** Visualization\
**Tags:** gaston\
**Created:** [July 12, 2022, 1:39pm UTC](https://discourse.julialang.org/t/plotting-marks-with-more-one-character-in-gaston/84107 "2022-07-12T13:39:05Z")\
**Posts on this page:** 4\
**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:** [July 12, 2022, 1:39pm UTC](https://discourse.julialang.org/t/plotting-marks-with-more-one-character-in-gaston/84107/1 "2022-07-12T13:39:05Z")

</div>

Dear all,  
I have the following code to plot several points and marks beside it:

```julia
using Gaston
n=15
L=rand(1:100,n,2)
L=[L 1:n] 
scatter([L[1,1]], [L[1,2]],linewidth="3", pointtype="fsquare", plotstyle="linespoints",linecolor = "'red'",Axes(key = :off))
plot!(L[2:2,1], L[2:2,2],linewidth="3", pointtype="fcircle",linecolor = "'red'")
plot!(L[1:1,1].+2, L[1:1,2],linewidth="3", pointtype="453",linecolor = "'red'")

```

I would like to print the mark “456” beside the first point.

However, the Gaston package (my preferable) does not accept the string ‘453’ that has more one character, and only print the first character. How can I fix this, please?

![image](https://global.discourse-cdn.com/julialang/original/3X/0/4/04edd3d65e3e7f437882dc0b32625216cc6913e1.png)

---

<div class="post-metadata">

**Author:** ![mbaz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbaz/32/17295_2.png) [@mbaz](https://discourse.julialang.org/u/mbaz)\
**Post date:** [July 12, 2022, 2:17pm UTC](https://discourse.julialang.org/t/plotting-marks-with-more-one-character-in-gaston/84107/2 "2022-07-12T14:17:16Z")

</div>

This is a limitation in gnuplot. See section “Points” in page 80 of the [documentation](http://www.gnuplot.info/docs_5.4/Gnuplot_5_4.pdf).

To plot a string, you can use the `labels` plotstyle (page 77 in the manual).

---

<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:** [July 12, 2022, 3:03pm UTC](https://discourse.julialang.org/t/plotting-marks-with-more-one-character-in-gaston/84107/3 "2022-07-12T15:03:52Z")

</div>

could you inserd this instruction on my code, please?

---

<div class="post-metadata">

**Author:** ![mbaz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbaz/32/17295_2.png) [@mbaz](https://discourse.julialang.org/u/mbaz)\
**Post date:** [July 12, 2022, 3:22pm UTC](https://discourse.julialang.org/t/plotting-marks-with-more-one-character-in-gaston/84107/4 "2022-07-12T15:22:13Z")

</div>

Here’s a quick example:

```nohighlight
x, y = [1, 2], [-1, 1.5]
scatter(x, y,
        pointtype = "fsquare", linecolor = "'red'",
        Axes(xrange=(0,3), yrange=(-2,3)))
plot!(x.+0.1, y, supp=["456", "457"], w = "labels")

```

which produces this plot:

![image](https://global.discourse-cdn.com/julialang/original/3X/6/7/675c2257accc3710230ebe7a25e476a44754e19b.png)
