SetTickLength

Hi,

I am using root 5.16. I am running a standalone little gui that puts several a divided TCanvas of a TRootEmbeddedCanvas. In them I plot TH1 and TH2s. I am setting the style by defining a global style via TStyle, like this:

    TStyle * mystyle = new TStyle("mystyle", "my custom style");
  
     // no borders, white color
     mystyle->SetCanvasColor(0);
     mystyle->SetFillColor(0);
     mystyle->SetTitleFillColor(0);
     mystyle->SetTitleBorderSize(0);
     mystyle->SetTitleFontSize(0.08);

     //set tick length to negative it doesn't go into the plot
     mystyle->SetTickLength(-0.03, "x"); 
     mystyle->SetTickLength(-0.03, "y");

    // ...etc.

    //set the style
     gROOT->SetStyle("mystyle");
     gROOT->ForceStyle();

My problem is that everything is set properly except the tick length. Somehow it doesn’t do anything with the ticks. What can be the problem?

Thanx,
Balint

May be you are reading the histograms from a root file and therefore they are saved with their own settings and you should do:

hpx->UseCurrentStyle()

hpx being an histogram.