title: Draw a quarter circle at the end of a straight line
body: <p>I have coordinates of some points. My task is to get the direction of those points and find where future possible points will be located in the calculated direction. To do so, I have planned the following- </p>
  
  <ol>
  <li>Fit a line to the points</li>
  <li>Draw a quarter circle at the end of the fitted line. In common sense, the quarter circle might not be the right option to go for. However, it is a part of another problem and has to be solved this way.</li>
  </ol>
  
  <p>I am using the following codes to fit a line</p>
  
  <pre><code>from matplotlib import pyplot as plt
  from scipy import stats
  
  x = [1,2,3,2,5,6,7,8,9,10] 
  y = [2,4,11,8,8,18,14,11,18,20]
  slope, intercept, r_value, p_value, std_err = stats.linregress(x,y)
  line = [slope*i+intercept for i in x]
  plt.plot(x, line)
  </code></pre>
  
  <p>Suppose, the two points on the fitted line is (9,17) and (10,19). How can I draw a quarter circle at (10,19) with a radius of 5 in the direction of the line?</p>
  
  <p><a href="https://i.stack.imgur.com/yVy1A.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yVy1A.jpg" alt="enter image description here"></a></p>
  
  <p>Ultimately, I will have a point location and I have to check whether the point falls inside the quarter circle or not, I assume which could be done with shapely.</p>