Removal of Points with Identical X Coordinates

Greating to the community!

I’m trying to filter out points that have the same X coordinate. I’ve been searching online but haven’t found a solution yet. Do you have any suggestions or tips to solve this issue? Your help would be greatly appreciated.

Thank you so much for your help!

I am not sure exactly what you are trying to get at…

Below is the best shot I have at your problem.

Same X as what? Anyways this is what I thought of when you said that. This should do exactly what you are looking for with some editing.

That’s elementary via code (2 lines in fact). Notify if you need a C# that does it.

Sorted into a branch per x value:

Hello, thank you for your response. I’m eager to learn more about C#. Although I find it very interesting, I’m still at the beginning stages of my learning journey. I would appreciate any guidance or assistance you can provide.

Hello Bernd Möller, thank you for providing such an incredible example. I am trying it out right now.

Well …

  1. Forget Internet.
  2. Turn off computer.
  3. Get books, read’m many times.
  4. If you know what not to do you are ready (and by that time you’ll realise that there’s no reason to turn on the computer (*)).

Anyway: get a simple take on pts coords (the first C# does the demo the second cuts the mustard via a GroupBy single line [ then - obviously - there’s the options around]). (116.7 KB)

Get this as well: an entry level take on LINQ matters (critical for any data mining - you’ll see what I mean some years later). (116.4 KB)

(*) That said I hate computers.


Here’s a quick three liner Python script that might help: (4.7 KB)

Side note: It’s always easier to help if one provides an example/case to work with :slight_smile:


You can group points that have the same X values like this: (18.3 KB)
P.S. This is an example where results are more clear when you jitter the branch colors.

Rounding of X coordinates to 3 or 4 decimal places may be required.

Or cull groups that have only one point (ignoring points with identical X values) like this: (18.4 KB)


Hello everyone,

Just a quick shoutout to express massive gratitude for all the fantastic help and positive vibes on the forum! The impressive work and solutions you’ve shared have made a real difference, and I’m thrilled that you took the time to share your insights.

Excited to keep learning from your amazing guidance in mastering this program. You guys truly make this place special!