Hello,
I would like to plot several lines on a same plot.
Each line was created with x in range [-1,1] as follows:
line_x[i]=-1:0.1:1
line_y[i]=(a[i]* line_x[i] .+ b[I])
My problem is that for each line, I would like it to be plotted only on a specific window within the [-1,1]x[-1,1] square. (That is, I really only want pieces of my lines to appear on the plot). But I do want all my line pieces to appear on the same plot.
I tried:
plot!(line_x[i], line_y[i],xlim=(minX[i],maxX[i]),ylim=(minY[i],maxY[i]))
but it didn’t restrict the lines at all
Thanks for your help!