graphical bug with TF1 in root ?

From: Marc Escalier <escalier_at_lal.in2p3.fr>
Date: Sat, 10 Dec 2011 18:51:45 +0100


Hello,

doing a draw of a basic TF1, i occur a graphical bug of the function that appears as horizontal on the bottom of the canvas ?

(attached picture)

is there a way to prevent this (without changing the line color nor width)

thanks

here is the minimal example :

{

   TCanvas *c1=new TCanvas("c1", "A canvas", 10,0, 800, 600);    c1->SetLogy();
   histo_dummy=c1->DrawFrame(0,1e-4,27,10);

   TF1 gaussian_func("gaussian_func","gaus",0,25.4);

   gaussian_func.SetLineColor(kRed);
   gaussian_func.SetParameters(1e-2,10,3);
   gaussian_func.Draw("same");

   c1->RedrawAxis();
   c1->SaveAs("test.png");
}

using :


ROOT 5.30/00 (tags/v5-30-00_at_40062, Aug 12 2011, 16:25:34 on linuxx8664gcc)

CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010

Received on Sat Dec 10 2011 - 18:51:51 CET

This archive was generated by hypermail 2.2.0 : Mon Dec 12 2011 - 23:50:01 CET