I would like to plot several lines on a same plot.
Each line was created with x in range [-1,1] as follows:
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.
but it didn’t restrict the lines at all
Thanks for your help!