Line width with TPad::Divide(n, m, 0, 0)

Hi Rooters,

If I execute the following macro:

{
  gStyle->SetOptStat(0);

  TCanvas* c = new TCanvas("c", "c", 0, 0, 700, 700);
  c->Divide(2, 2, 0, 0);

  TH1F* h1 = new TH1F("h1", "h1; x; y", 100, 0, 1);
  TH1F* h3 = new TH1F("h3", "h3; x; y", 100, 0, 1);
  TH1F* h4 = new TH1F("h4", "h4; x; y", 100, 0, 1);

  c->cd(1);
  h1->Draw();
  c->cd(3);
  h3->Draw();
  c->cd(4);
  h4->Draw();

  c->Update();
  c->Print("divide.eps");
}

the right vertical frame line of the first subpad gets thinner than the others. Is it possible to draw it with the same width?

Thanks in advance,
Taka

It is not thinner, it may disappear on screen because it is exactly on the border. But the PS file divide.eps is ok. Is it the same for you ?
You can add also:
gStyle->SetCanvasColor(0);
gStyle->SetFrameBorderMode(0);

Thanks for your reply. I have forgot to write that the following was executed in my environment:

gStyle->SetStyle(“Plain”);

I added the two lines you suggested to the macro. The divide.eps made in my environment is attached below. That line still looks thinner or dimmer than the others to me…

Taka
divide.eps.gz (3.47 KB)

I wrote:

Thanks for your reply. I have forgot to write that the following was executed in my environment:

gStyle->SetStyle(“Plain”);

It was wrong. gROOT->SetStyle(“Plain”) was executed.

By the way, I think I found a solution of this issue:

{
  gStyle->SetOptStat(0);

  TCanvas* c = new TCanvas("c", "c", 0, 0, 700, 700);
  c->Divide(2, 2, 0, 0);

  TH1F* h1 = new TH1F("h1", "h1; x; y", 100, 0, 1);
  TH1F* h3 = new TH1F("h3", "h3; x; y", 100, 0, 1);
  TH1F* h4 = new TH1F("h4", "h4; x; y", 100, 0, 1);

  c->cd(1);
  h1->Draw();
  c->cd(3);
  h3->Draw();
  c->cd(4);
  h4->Draw();
  c->cd(1);
  gPad->Pop();

  c->Update();
  c->Print("divide.eps");
} 

Taka