python - For loop in matplotlib only plots first iteration -


i want read several columns csv file , plot them on single window. have this:

fig1=pl.figure(num=1, figsize=(8, 4), dpi=80, facecolor='w',edgecolor='k') a=np.random.rand(50,9) ax = pl.gca()  in range(0,6,2):             ax.errorbar(a[:,i], a[:,i+1], yerr= a[:,i+2])        ax.set_xscale('log') ax.set_xlim(1e19, 1e22) pl.show()  

i no error message, output plot first iteration, when there should 3 in sample file. have put different parts of code in loop @ best first plot window , 2 empty windows not looking either. why isn't loop cycling through values? or assuming cycling through why plotting first one? thanks!

update: tcaswell, x range restrictive. classical case of not looking @ data close enough. embarrassing.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -