title: Line plot with marker at final point
body: <p>I am looking to produce a graph plotting the points of particles under the action of gravity and am currently producing a plot as below:</p>
  <p><a href="https://i.stack.imgur.com/9VDLu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9VDLu.png" alt="enter image description here" /></a></p>
  <p>However, I would like to produce a clearer plot showing a line for the path of the particles and a marker at the final point indicating their final positions, like in the plot below:
  <a href="https://i.stack.imgur.com/hiSyv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hiSyv.png" alt="enter image description here" /></a></p>
  <p>My current line of code plotting each line is:</p>
  <pre><code>plt.plot(N_pos[:,0] * AU, N_pos[:,1], 'o')
  </code></pre>
  <p>This just plots the x and y coordinate from an array listing the x, y and z coordinate for each particle</p>
  <p>Is the simplest way to do this remove the 'o' marker from the code and just plot the last position of each particle again but this time using a marker? If so, how to I make the line and final marker the same colour instead of like below?:</p>
  <p><a href="https://i.stack.imgur.com/CXJ1n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CXJ1n.png" alt="enter image description here" /></a></p>
  <pre><code>for i in range(len(all_positions[0])):
      N_pos = all_positions[:,i]
      plt.plot(N_pos[:,0] , N_pos[:,1])
      plt.plot(N_pos[:,0][-1] , N_pos[:,1][-1], 'o')
  </code></pre>