Scatter Plot: Colour each point differently

For the scatter plot in Slicer, I’m wondering if there is a way to colour each point uniquely. I’d like for each point to be coloured based on the density of nearest points. I’ve attached an image of what I would like the plot to look like:

Density scatter plot

I don’t think the plot view is prepared for this, but it should not be hard to create similar plots in slice or 3D views. And of course you can use any of Python’s dozens of plotting libraries in Slicer to create such images.