When I draw a TH1 with error bars, there is a black dot at the center of each cross.
This is shown with the minimal example:
#include "TH1D.h"
#include "TCanvas.h"
#include "TLegend.h"
void temp() {
auto hist = new TH1F("hist","",10,0,10);
for (int i=1; i<=hist->GetNbinsX(); i++) {
hist->SetBinContent(i, 2*i);
}
hist->SetLineWidth(3);
hist->SetLineColor(2);
auto canvas = new TCanvas("c1","");
hist->Draw("e");
canvas->SaveAs("canvas.pdf");
}
Which produces canvas.pdf:
I was not expecting a black dot to appear at the center of each cross, especially since I have set the line color to red. How do I prevent this? I could not find any information at https://root.cern.ch/doc/master/classTHistPainter.html. Sorry if this question has a trivial answer.