I want to clip the line to only the segment between the red triangle and black X.
I used this code:
The above code produced the result shown below which is not what I had in mind. Could you please suggest a fix in the code above, such that I can keep just the line segment between the red triangle and black X? Thanks