Say that I have an x and y dimensions. The value of y however, can have 2 possible values for a single x. How would one go about plotting such thing?
So far I have tried defining y as an array of 2-element tuples and plotting it using Plots.jl but with no success.
Pass two vectors, one with x values and one with corresponding y values, some elements in the x vector will be repeated several times, which is fine. Use scatter
instead of plot
if you want points instead of lines.
2 Likes