Is there a simple way to differentiate multiple lines with sparse markers?

I think I’ve got my problem solved by following the code like this:

p = plot(…; label = nothing)
scatter!(p…)
It now outputs like this
微信截图_20240607111736