TF2::GetHistogram()

Hi,
I am using ROOT 6.04.02,

I have TF2.
When I use GetHistogram(), and then want to ptojext the histogram
using the SetShowProjectioX() (or Y), I get the projected histogram with error bars.
Is this a bug, or there is an option that I can use to not see error bars,
I don’t want for each slice manually do SetDrawOption(“hist”);

With ROOT 5.34.21, it was ok, no error bars was drawn.

Thanks Rafo

{
  TF2 *f_test = new TF2("f_test", "x*y*sin(x*y)", -4.5, 4.5, -4.5, 4.5);
  f_test->SetNpx(150);
  f_test->SetNpy(150);
  f_test->Draw("colz");
  TH2D *h_test1 = (TH2D*)(f_test->GetHistogram()->Clone("h_test1"));
  h_test1->Draw("colz");
  h_test1->SetShowProjectionX(1);
}
{
  TF2 *f_test = new TF2("f_test", "x*y*sin(x*y)", -4.5, 4.5, -4.5, 4.5);
  f_test->SetNpx(150);
  f_test->SetNpy(150);
  f_test->Draw("colz");
  TH2D *h_test1 = (TH2D*)(f_test->GetHistogram()->Clone("h_test1"));
  h_test1->Sumw2(0);
  h_test1->Draw("colz");
  h_test1->SetShowProjectionX(1);
}

Thank you,
it works.

Rafo