You cannot specify multiple linestyles in one plotting command. Try this instead:
plot(x, y1, linestyle = ":")
plot(x, y2, linestyle = ":")
plot(x, w3, linestyle = "-")
It’s also possible to have PyPlot automatically cycle between styles, see e.g. Styling with cycler — Matplotlib 3.1.2 documentation.