Re: A question about how plot from matplotlib works

2015-02-19 Thread Jason Swails
On Thu, Feb 19, 2015 at 5:47 AM, ast wrote: > Hello > > import numpy as np import matplotlib.pyplot as plt x = np.arange(10) y = x**2 x >>> array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) > >> y >>> array([ 0, 1, 4, 9, 16, 25, 36, 49, 64, 81]) > >> plt.plot(x,y) >>> [

Re: A question about how plot from matplotlib works

2015-02-19 Thread marco . nawijn
On Thursday, February 19, 2015 at 11:47:53 AM UTC+1, ast wrote: > Hello > > >>> import numpy as np > >>> import matplotlib.pyplot as plt > >>> x = np.arange(10) > >>> y = x**2 > >>> x > array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) > >>> y > array([ 0, 1, 4, 9, 16, 25, 36, 49, 64, 81]) > >>> plt.plot(x

A question about how plot from matplotlib works

2015-02-19 Thread ast
Hello import numpy as np import matplotlib.pyplot as plt x = np.arange(10) y = x**2 x array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) y array([ 0, 1, 4, 9, 16, 25, 36, 49, 64, 81]) plt.plot(x,y) [] plt.show() The question is: plt.plot() creates an object "matplotlib.lines.Line2D" but this obj