TH1::Draw Option "E"

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);

  auto canvas = new TCanvas("c1","");



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 Sorry if this question has a trivial answer.

Try also change marker color to red:


Thanks! Problem solved! You (or someone else) may close this thread.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.