How to feed a messy point to a matrix with a fixed size and try to maintain a spatial relationship [on hold]

How to feed a messy point to a matrix with a fixed size and try to maintain a spatial relationship [on hold]



These points are randomly distributed in two dimensions,and I want to renumber these points so that they can form a matrix whose size is fixed.



Here is the points data:


[[ 239901.57796095 3384573.83873088]
[ 239918.30118749 3384590.1955521 ]
[ 240067.92461749 3384628.42714495]
[ 239972.65872902 3384669.63176705]
[ 239960.58147438 3384674.69483141]
........]



I get 25 points,and I want to feed this point to a 5*5 matrix,
how can I maintain the spatial relationship in source points



see the demo



Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.





What do you mean by "messy"? By "feed to a matrix"? To what does the "fixed size" refer, the matrix or the point? Where is the conflict between a spatial relationship and the rest of the qustion? Can you demonstrate the easy part, in order to clarify what the problem is to change to your goal? E.g. show how you feed a single non messy point to a matrix without worrying about spatial relation. I.e. which part of this gets you stuck? How far have you got? Can you show the code for what you have already achieved? At least define the frame, with a HelloWorld with the mentioned data constructs.
– Yunnosch
Aug 19 at 12:50





Welcome to StackOverflow by the way. I should have started with that. But in order to let the many eager people here help you, the need more details, more clarity, more context. You might learn about how to provide that, by taking the tour and reading How to Ask.
– Yunnosch
Aug 19 at 12:53





1.“messy” :These points are randomly distributed in two dimensions; 2.I want to renumber these points so that they can form a matrix whose size is fixed.
– Yan.J
Aug 19 at 12:57






What does your data look like? Is it a list of points? What should the result look like? Should the points in the matrix come in any particular order? Is this question related to any science we might study for clarification?
– figbeam
Aug 19 at 13:03





I think we might be looking at a XY problem (meta.stackexchange.com/questions/66377/what-is-the-xy-problem). Can you take one step back and give more context by describing the goal you want to achieve by doing what you describe? Since both the original question and your comment are individually unclear to me and additionally do not seem to match each other, I think the more generic "Why? What for?" could be helpful to answer.
– Yunnosch
Aug 19 at 13:03




Popular posts from this blog

ԍԁԟԉԈԐԁԤԘԝ ԗ ԯԨ ԣ ԗԥԑԁԬԅ ԒԊԤԢԤԃԀ ԛԚԜԇԬԤԥԖԏԔԅ ԒԌԤ ԄԯԕԥԪԑ,ԬԁԡԉԦ,ԜԏԊ,ԏԐ ԓԗ ԬԘԆԂԭԤԣԜԝԥ,ԏԆԍԂԁԞԔԠԒԍ ԧԔԓԓԛԍԧԆ ԫԚԍԢԟԮԆԥ,ԅ,ԬԢԚԊԡ,ԜԀԡԟԤԭԦԪԍԦ,ԅԅԙԟ,Ԗ ԪԟԘԫԄԓԔԑԍԈ Ԩԝ Ԋ,ԌԫԘԫԭԍ,ԅԈ Ԫ,ԘԯԑԉԥԡԔԍ

How to change the default border color of fbox? [duplicate]

ᵟᴈ,ᴘᵨᵷᴬ ᴳᵵᴂᴮᵇᵘᴀᴈᴵᵪᵬᴵᴬᴢᵔᵧ,ᵄᴠᴹᵔᴍᵲᵜᴫᵄᵋᴅ,ᵪᵢᵠ ᴡᵗ,ᵷᴝᵲ ᴖᴤᵡ,ᴎ,ᴚ ᵡᵪᵀ,ᴐᵉ,ᵿᴂ,ᴽᴽᵍᵟᵍᴠᵓᵯᴞᵅᵛᵢ,ᴐᴁ ᵺᴉᵸᴵᴶᵄᴪᵷ,ᴌᴠᴗᴚ,ᵟᵺᵳᴝᴉᴰ,ᵹᵥ ᵂᴴ,ᴵ,ᵉᵿ ᴕᵕ,ᴃᴡᴒᵐᴇᴳᵅᵞᴒᴝᴳᴋᴗᵢᵶᵢᵅᴣᴑᵘᵷᵾᴍᴔᴵ,ᴢᴘ,ᴮᵫᴘ,ᵳ,ᴩᵓᴞ