fig = pylab.figure()
ax_size = [0,0,1,1]
ax = fig.add_axes(ax_size)
ax.scatter(x[showd[0],:]-min(x[showd[0],:]),x[showd[1],:]-min(x[showd[1],:]),s=50,c=tc,cmap=pylab.cm.jet)
It is easier to write an incorrect program than understand a correct one.
Check whether the TCL_DIR or TK_DIR environment variables are set. If so, unset them.
For my computer, deltet the tcl that related to the previous installed ruby.
http://mail.python.org/pipermail/python-bugs-list/2008-April/051418.html