I cannot reproduce your problem. I tried with:
{
TCanvas *canvas = new TCanvas("cnavas","canvas");
TH1F *h1 = new TH1F("h1","h1",200,-10,10);
h1->FillRandom("gaus");
h1->Draw();
canvas->Print("h1.svg");
canvas->Clear();
TH1F *h2 = new TH1F("h2","h2",200,-10,10);
h2->FillRandom("gaus");
h2->Draw();
canvas->Print("h2.svg");
}
BTW the svg files you sent look fine seems to me.
On May 30, 2012, at 7:36 PM, Brett Viren wrote:
> #!/usr/bin/env python
> import ROOT
> def do_one(canvas,name):
> canvas.Clear()
> h = ROOT.TH1F(name,"hist %s"%name,200,-10,10)
> h.FillRandom("gaus")
> h.Draw()
> canvas.Print(name + ".svg")
>
> def test_svg():
> canvas = ROOT.TCanvas("canvas","canvas")
> do_one(canvas,"h1")
> do_one(canvas,"h2")
>
> if __name__ == '__main__':
> test_svg()
Received on Thu May 31 2012 - 09:36:50 CEST
This archive was generated by hypermail 2.2.0 : Thu May 31 2012 - 17:50:01 CEST