connect cells with lines

I have a simple spreadsheet with numbers in various cells. How do I connect them with lines from one cell to the next?
Thank you.

Hello,

See this post → Python macro for Calc to correlate two columns with string data

The instructions to do this manually are in the question. Result is as such (here selected same cell):

image description

There is also a Python macro in the answer which can automate the process. Have never really examined this closely but remember testing the posted code. Here is sample output:

image description

Doesn’t appear to work for numbers as written but may be of help as a starting point.