I have plotted the x-axis and y-axis on the data points.
Now there are 2 tasks.
- Draw a diagonal line passing roughly through the middle of data points(Consider the black line in the picture below).
- Calculate the angle between the horizontal blue line and the line we draw in task 1.
Note - I have generated the following figure through matplotlib. You can suggest a solution through matplotlib or any other library.
Thanks in advance..