On Sunday, August 21, 2011, Owen Densmore <[email protected]> wrote:
> I work with a group, many of whom use the numpy, scipy, matplotlib stack,
while I much prefer using Sage. So I modified Sage to let me use the
matplotlib GUI which is not include in the standard Sage release.
> To do so, I followed the instructions for installing the matplotlib
backend
> http://wiki.sagemath.org/sage_matlab
> .. which for me required only setting the two env variables and running
> sage -i matplotlib
> To test this out, I actually installed the numpy, scipy, matplotlib as
well, and in both, ran this test from a Machine Learning book, using
"ipython" and "sage" command line .. i.e. no arguments like -pylab etc:
>
Obvious question: are you using exactly the same versions of numpy, etc., in
both of your tests?
> import numpy as np
> import matplotlib.pyplot as plt
> import os
> os.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()
>
> The results look alike, but the axes appear to lack the lowest decimal
value. So for 10, 11, 12 ... I see 1, 1, 1!
> The dataset is on this public site:
http://archive.ics.uci.edu/ml/datasets/Pima+Indians+Diabetes
> Here are the plots, the first from the scipy install, the second from
sage. I'd like to know if this is a mistake on my part or a bug that needs
to be reported.
> My environment is
> sage -v -> Detected SAGE64 flag, Building Sage on OS X in 64-bit
mode, Sage Version 4.7, Release Date: 2011-05-23
> -- Owen
>
>
>
>
>
>
>
> --
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
[email protected] <
sage-support%[email protected]>
> For more options, visit this group at
http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org
>
--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org