No more errors, as you can see. So i don’t know what could be happening. There is any other option that would reproduce the same results? I mean, would give me the rectangular error bars? like b instead of 2? I would like to try something like that, or any tips that you may have.
Below is a part of my code if you want to give a look at it:
for jk in range(nHistograms):
errorArray.append( nameArray[jk] + 'error' )
nEntries = ster[jk].GetNbinsX()
xminn = ster[jk].GetXaxis().GetXmin()
xmaxx = ster[jk].GetXaxis().GetXmax()
width = ster[jk].GetXaxis().GetBinWidth(1)
x = array('f') #array['f']
y = array('f') #array['f']
ex = array('f') #array['f']
ey = array('f') #array['f']
for i in range(nEntries):
x.append(xminn + width*i)
y.append(ster[jk].GetBinContent(i))
ey.append(ster[jk].GetBinError(i) + ster[jk].GetBinError(i))
ex.append(0.0)
errorArray[jk] = TGraphErrors( nEntries, x, y, ex, ey )
errorArray[jk].SetLineColorAlpha(0, 0)
errorArray[jk].SetFillStyle(errostyleArray[jk])
errorArray[jk].SetFillColor(errorfillArray[jk])
and for the plot:
>
> for j in range(nHistograms):
> ax1.plot(errorArray[j],"2")
For the .plot() option, i am actually using Atlas Plots. But it’s equivalent to errorArray[j].Draw(“a2”).
HI @couet, i am posting a part of my code, if you want me to post in a way you can run it, let me know please. And i used pyrrot btw, is that ok? I never used it in c++.
But why would it be able to plot the errors with “3” and not with option “2”, If the line colors were the same?
I changed the line color to black, they were indeed white, but the result is the same as before. I read the canvas.cxx file and the lines you told me to remove were not there anymore too.