So I am trying to plot basically two functions Positions respect to time.

The first function is
U = 2.67t
The second function is
J = 2t+4

When plotted the functions intersect at time, t = 6. (x-axis) and position 16. (y-axis)
What im trying to do is that after the two lines intersect the function U, should equal function J.
The current results im having look like this:
[Current Plot Results](https://i.stack.imgur.com/yMY9i.png)
you can see that the line for UAV continues after t=6, however I want it to change and equal to function J after t=6.

I hope you understand. Here is my full code currently:

```
import numpy as np
import matplotlib.pyplot as plt

t = np.arange(0,int(20/1))

#Jackal
def xj(t):
    return (2*t+4)

#UAV
def xu(t):
    return (2.67*t)

if __name__ == '__main__':
    plt.plot(xu(t),label='UAV Path')
    plt.plot(xj(t),label='Jackal Path')
    plt.grid()
    plt.xlabel('time')
    plt.ylabel('Position')
    plt.title('Pose Vs\nTime Graph')
    plt.legend()
    plt.show()

```