ax.plot(profile['x'][-2:], profile['y'][-2:], 'k--', label='extended path')