# Assigning different markers to series

**URL:** <https://discourse.julialang.org/t/assigning-different-markers-to-series/1725>\
**Category:** Visualization\
**Created:** [January 27, 2017, 9:10pm UTC](https://discourse.julialang.org/t/assigning-different-markers-to-series/1725 "2017-01-27T21:10:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![purplishrock](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/purplishrock/32/13451_2.png) [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Post date:** [January 27, 2017, 9:10pm UTC](https://discourse.julialang.org/t/assigning-different-markers-to-series/1725/1 "2017-01-27T21:10:50Z")

</div>

I have something like

```julia
plot(plot([[1:m:length(yint)], [1:length(yint)]], [real(s), real(yint)]),
         plot([[1:m:length(yint)], [1:length(yint)]], [imag(s), imag(yint)]),
         markershape=:circle,
         layout=(2,1),
         ylim=(-5,5),
         yticks=-5:1:5)

```

with multiple series, but I can’t figure out how I can assign a different marker to each series.

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [January 27, 2017, 11:00pm UTC](https://discourse.julialang.org/t/assigning-different-markers-to-series/1725/2 "2017-01-27T23:00:52Z")

</div>

The code doesn’t look right - anyway, you pass a 1-row Matrix with the marker shapes, eg `[:cross :hex :star7]` in the last example here [https://juliaplots.github.io/](https://juliaplots.github.io/)

---

<div class="post-metadata">

**Author:** ![purplishrock](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/purplishrock/32/13451_2.png) [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Post date:** [January 28, 2017, 12:26am UTC](https://discourse.julialang.org/t/assigning-different-markers-to-series/1725/3 "2017-01-28T00:26:00Z")

</div>

Doesn’t look right in what sense ? incorrect or there’s a better way to do it ?  
Meanwhile I could have sworn I tried using a one-row matrix…I did. Apparently certain back-ends don’t like that ?

Here’s precisely what I used

```
plot(plot([[1:m:length(yint)], [1:length(yint)]], [real(s), real(yint)]),
     plot([[1:m:length(yint)], [1:length(yint)]], [imag(s), imag(yint)]),
     markershape=[:square, :circle],
     layout=(2,1),
     ylim=(-5,5),
     yticks=-5:1:5)

```

WARNING: Vectors of markers are currently unsupported in PyPlot: Symbol[:rect,:circle]

---

<div class="post-metadata">

**Author:** ![tbreloff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbreloff/32/68_2.png) [@tbreloff](https://discourse.julialang.org/u/tbreloff)\
**Post date:** [January 28, 2017, 12:43am UTC](https://discourse.julialang.org/t/assigning-different-markers-to-series/1725/4 "2017-01-28T00:43:39Z")

</div>

You precisely used a vector, not a matrix. 🙂 Drop the comma.

---

<div class="post-metadata">

**Author:** ![purplishrock](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/purplishrock/32/13451_2.png) [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Post date:** [January 28, 2017, 4:20am UTC](https://discourse.julialang.org/t/assigning-different-markers-to-series/1725/5 "2017-01-28T04:20:29Z")

</div>

oops. julia noob alert…

edit: thank you !
