Assigning different markers to series


#1

I have something like

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.


#2

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/


#3

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]


#4

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


#5

oops. julia noob alert…

edit: thank you !