# How to draw a dot with PyPlot?

**URL:** <https://discourse.julialang.org/t/how-to-draw-a-dot-with-pyplot/92134>\
**Category:** New to Julia\
**Created:** [December 26, 2022, 8:52am UTC](https://discourse.julialang.org/t/how-to-draw-a-dot-with-pyplot/92134 "2022-12-26T08:52:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luigi\_Marongiu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/luigi_marongiu/32/7909_2.png) [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Post date:** [December 26, 2022, 8:52am UTC](https://discourse.julialang.org/t/how-to-draw-a-dot-with-pyplot/92134/1 "2022-12-26T08:52:02Z")

</div>

Hello,  
I can write a marker on a plot generated with `PyPlot` with:

```julia
scatter(X, Y, s = 25, color = "red", marker="x")

```

However, I don’t like the `x` as a marker (it looks too much as a treasure map…). I tried to apply the unicode capabilities of Julia with `marker = "·"` but I get an error. I also tried with:

```julia
scatter(X, Y, s = 25, color = "red", markershape=:circle label="x")

```

but I get another error:

```julia
julia> scatter(X, Y, s = 25, color = "red", markershape=:circle, label="")
ERROR: PyError ($(Expr(:escape, :(ccall(#= /home/gigiux/.julia/packages/PyCall/ygXW2/src/pyfncall.jl:43 =# @pysym(:PyObject_Call), PyPtr, (PyPtr, PyPtr, PyPtr), o, pyargsptr, kw))))) <class 'AttributeError'>
AttributeError("'PathCollection' object has no property 'markershape'")
  File "/usr/lib/python3/dist-packages/matplotlib/pyplot.py", line 2807, in scatter
    __ret = gca().scatter(
  File "/usr/lib/python3/dist-packages/matplotlib/ __init__.py", line 1416, in inner
    return func(ax, *map(sanitize_sequence, args), **kwargs)
  File "/usr/lib/python3/dist-packages/matplotlib/axes/_axes.py", line 4468, in scatter
    collection.update(kwargs)
  File "/usr/lib/python3/dist-packages/matplotlib/artist.py", line 1064, in update
    raise AttributeError(f"{type(self). __name__!r} object "

```

What is the correct syntax? Can I simply used unicode to pass the marker to Julia?  
Thank you

---

<div class="post-metadata">

**Author:** ![fedoroff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fedoroff/32/53209_2.png) [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Post date:** [December 26, 2022, 10:51am UTC](https://discourse.julialang.org/t/how-to-draw-a-dot-with-pyplot/92134/2 "2022-12-26T10:51:50Z")

</div>

Try this

```julia
scatter([0], [0], s=25, color="red", marker="o")

```

[https://matplotlib.org/stable/api/markers\_api.html](https://matplotlib.org/stable/api/markers_api.html)

---

<div class="post-metadata">

**Author:** ![Luigi\_Marongiu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/luigi_marongiu/32/7909_2.png) [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Post date:** [December 26, 2022, 5:31pm UTC](https://discourse.julialang.org/t/how-to-draw-a-dot-with-pyplot/92134/3 "2022-12-26T17:31:18Z")

</div>

Thank you!
