Modern style and pad selection

Dear all,

In the old time, when the histograms looked really ugly, we could (at least) see the sub-pads of a canvas and which one was selected (cd x).


What should I change in the style “modern” to have the contour of the pads in grey and the selected pad in another color ?

Thank you very much,
Barth

// http://root.cern.ch/root/html/TStyle.html#TStyle:TStyle@1 gROOT->SetStyle("Classic");

Hello,

I might not have expressed clearly. I want to keep the nice looking modern style but add a fine grey line around pads and a fine colored line around the selected pad.

Thank you
Barth

// http://root.cern.ch/root/html/TStyle.html // gStyle->SetCanvasBorderMode(1); // -1 = down, 0 = no border, 1 = up gStyle->SetPadBorderMode(1); // -1 = down, 0 = no border, 1 = up // gStyle->SetFrameBorderMode(1); // -1 = down, 0 = no border, 1 = up

Note that you can see what each style does here:
root.cern.ch/root/html/src/TStyl … tml#oryiQE

Hello,

Thank you for your help. I am progressing.

First of all, in TStyle code I see that the styles are defined twice (in the constructor and in the Reset(…)). You might want to avoid this code duplication.

What I do now is :

TCanvas c;
c.Divide(2,2);
c.Modified();
// here I see nothing
gStyle->SetPadBorderMode(1);
c.UseCurrentStyle();
// here I see nothing, still
c.cd(1);
// here I see the selected pad

I am sorry if I overlook something, but I don’t find which parameter I have to set to see the border of all pads, as opposed to seeing only the border of the selected pad.

Thank you in advance for your help,
Barth

Hi,

Thank you for your reply. I appreciate it and indeed, this would achieve more or less what I want.
However I am still looking for the way of having a border around my pads. If I set the border mode for pads to 1, I expect to have a border. If there are none, should I consider it a bug. What do you think ?

Thank you
Barth