Re: [Matplotlib-users] using plot(single_object)

2010-12-13 Thread Benjamin Root
On Sun, Dec 12, 2010 at 11:51 AM, Jose Guzman wrote: > I was wondering if there is an easy way to combine two vectors (x and y) > into a single object to be ploted with the plot() method in matplotlib. > > Untill now, I did something like: > > import matplotlib.pyplot as plt > x = np.nplinspace(0

[Matplotlib-users] using plot(single_object)

2010-12-12 Thread Jose Guzman
I was wondering if there is an easy way to combine two vectors (x and y) into a single object to be ploted with the plot() method in matplotlib. Untill now, I did something like: import matplotlib.pyplot as plt x = np.nplinspace(0,5,1000) y = np.ones_like(x) plt.plot(x,y) # need an object here