@sheshu9a1 wrote:
Actually the data does change along with the angles.
If the data changes along the angles, we need more than one 1D array to describe it. One 1D array for each direction. We currently don't have that!
What you need is a 2D array of suitable size and an intensity graph that is set to have "square pixels" (By setting the axis ranges and graph size such that a square section (e.g. a 20x20 section with a different value) looks like a square and not as rectangle).
Then you simply go back a month ago and try to understand my code detailed here. It is trivially simple!
To add any other features on top of it (e.g. the angle-dependent blobs shown in your most recent graphs), it is a matter of replacing certain array elements with new data. Their position (i.e. 2D array indices) can be calculated at any time using basic geometry. If you have fewer data than pixels, you can always apply some suitable interpolation.
Don't get lost in the trigonometry by overcomplicating things, e.g. just changing the "cos" and not the "sin" to change a virtual angle. That's super convoluted and backwards!