I have plotted a set of points from a data set on a scatter plot. These points represent 'hits' on a detector (with dimensions 2000 mm x 2000 mm), such that each hit represents a specific x and y coordinate on the detector corresponding to where the particle has landed. The centre of the graph is (0,0), whereas going to the left goes towards negative x values, and going to the right goes to positive x values. Up is also positive y values, and down is negative y values. I am trying to divide this plot into 7 sections, each line starting from the centre of the plot (0,0) and extending to the edge of the plot (so that R = 2000). Each line should be separated 2pi / 7 rads (or 360/7 degrees) so that the points can all be organized into these sections.
I have no idea how to start as I am relatively new with python. I've attached an image of what the graph itself looks like, as well as the code I've written for this graph. Anything helps, thank you all.
c1 = np.logical_and(np.logical_and((hitpz1 > 0), (hitdet1 == (Detector))), (hitpid1 == 11))
plt.plot(hitx1[c1].flatten(), hity1[c1].flatten(), '.', color = 'g')
plt.ylabel("Particle Y Position (mm)")
plt.xlabel("Particle X Position (mm)")
plt.title("Particle by Radial Position, (Detector 28, Elastic)")
plt.xlim(-2000,2000)
plt.ylim(-2000,2000)
plt.show()