Re: [Matplotlib-users] Multiple XY plots

2013-02-27 Thread lkz2366
Ok, I finally got it working after a couple of hours of experimenting. I couldn't figure out how to get your methods to work, maybe because I'm such a novice at Python. But, it was as easy as using a simple 'for' loop. num = the number of lists to plot time = a list of lists volts = a list of

Re: [Matplotlib-users] Multiple XY plots

2013-02-20 Thread ChaoYue
Hi, could you use a loop to solve it? arr1list = [np.arange(10) + i for i in range(10)] arr2list = [np.arange(10) -i for i in range(10)] for arr1,arr2 in zip(arr1list,arr2list): plot(arr1,arr2) you can use a more object oriented way: fig = plt.figure() ax = fig.add_subplot() for arr1,arr2