Scatter plot multiple series that don't share the same x values (Plots.jl)

I have three series of data that I would like to show on a scatter plot. Let’s say (x1,y1), (x2,y2) and (x3,y3). x’s and y’s are arrays that do not have the same size. How can I make a plot that shows them together?
I tried scatter(hcat(x1,x2,x3),hcat(y1,y2,y3)) but it doesn’t work because the arrays don’t have the same dimension.

scatter(x1, y1)
scatter!(x2, y2)
scatter!(x3, y3)

the ! in the end of the two last commands indicates that you want to add to the current plot.

1 Like

You could also one-line it by grouping the data as vector of vectors:

scatter([x1,x2,x3], [y1,y2,y3])