|
From: Gabriele B. <gb....@gm...> - 2014-03-10 16:39:38
|
Hi I'm trying to do a particular plot similar to this one: http://matplotlib.org/examples/pylab_examples/line_styles.html but my code pastes different datas in the same plot. I want only one array per each plot. I attach the wrong result fdatas = plt.figure() for filename in filenames: [various things] for obsangl in angles: [various things] #fitspectrum4.fitSpec is one my personal fitting routine pa0, era0, pa1, era1, pa2, era2, pa3, era3 = fitspectrum4.fitSpec(eels, averspe, (1.0)*(10**(-8)), 0.66, 10**6, 1) GAMMAs.append(pa1) EcutS.append(pa2) Bees.append(pa3) GeR.append(era1) EeR.append(era2) beR.append(era3) ialph += 1 ialpg = ialph axum1 = fdatas.add_subplot(numalp, 3, ialpg) da1 = axum1.errorbar(angles, GAMMAs, yerr=GeR, marker = ".") ialpg = ialph + 1 axum2 = fdatas.add_subplot(numalp, 3, ialpg) da2 = axum2.errorbar(angles, EcutS, yerr=EeR, marker = ".") ialpg = ialph + 2 axum3 = fdatas.add_subplot(numalp, 3, ialpg) da3 = axum3.errorbar(angles, Bees, yerr=beR, marker = ".") thanks Gabriele |