import numpy as npimport matplotlib.pyplot as pltimport osos.chdir(os.path.expanduser("~/src/ML/2 Linear"))pima = np.loadtxt('./pima-indians-diabetes.data',delimiter=',')indices0 = np.where(pima[:,8]==0)indices1 = np.where(pima[:,8]==1)plt.plot(pima[indices0,0],pima[indices0,1],'go');plt.plot(pima[indices1,0],pima[indices1,1],'rx');plt.show()


--
To post to this group, send email to sage-s...@googlegroups.com
To unsubscribe from this group, send email to sage-support...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
Exactly. We are currently behind the latest release of matplotlib. Can
you do this in both systems?
import matplotlib
print matplotlib.__version__
and report your results? Please do the same for numpy as well.
Thanks,
Jason
Chris Fonnesbeck: http://stronginference.com/scipy-superpack/