MDS visualization in Python
I recently came across some code that Andrew Gelman published on his blog back in 2007 for visualizing several multidimensional scaling (MDS) algorithms in Python with a simple tk interface. Given the age of the code, it used the Numeric, LinearAlgebra, and RandomArray packages which were all precursors to NumPy and therefore no longer readily available. So I made some simple updates and I am reposting the code here. The code includes a demo that can be run as:
python ./MDSdemo.py