# Aesthetics of Tick Marks and Axis Titles

**URL:** <https://root-forum.cern.ch/t/aesthetics-of-tick-marks-and-axis-titles/35284>\
**Category:** Newbie\
**Tags:** hist\
**Created:** [July 20, 2019, 6:38pm UTC](https://root-forum.cern.ch/t/aesthetics-of-tick-marks-and-axis-titles/35284 "2019-07-20T18:38:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![earguell](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/2bfe46/32.png) [@earguell](https://root-forum.cern.ch/u/earguell)\
**Post date:** [July 20, 2019, 6:38pm UTC](https://root-forum.cern.ch/t/aesthetics-of-tick-marks-and-axis-titles/35284/1 "2019-07-20T18:38:49Z")

</div>

* * *

_ROOT Version:_ 5.34/18  
_Platform:_ Not Provided  
_Compiler:_ Not Provided

* * *

How can you change the direction of the tick marks on a plot without changing the placement of the numbering and the title of the axis? For example, in this section of my code with everything else being previously defined:

```
for (unsigned int i = 0; i < Nhistos; i++) {

  fexpmentname[i] = new TFile(Form("total/nuifo_%s.root",expmentname[i].c_str()), "read");
  hnumu[i] = (TH1D*)fexpmentname[i]->Get("flux/hflux_numu");
  hnumu[i]->SetStats(0);
  hnumu[i]->SetLineColor(color[i]);
  leg->AddEntry(hnumu[i], Form("%s", lexpmentname[i].c_str()), "l");

  if (i == 0) {

    hnumu[i]->GetXaxis()->SetTitle("Neutrino energy (GeV)");
    hnumu[i]->GetYaxis()->SetTitle("#nu_{#mu} neutrino flux (#nu_{#mu} / m^{2} / GeV / 2.5 x 10^{8} POT)");
    hnumu[i]->GetYaxis()->SetTickLength(0);
    hnumu[i]->GetXaxis()->SetTicks("-");
    hnumu[i]->GetXaxis()->SetTickLength(0.015);
    hnumu[i]->SetTitle("#nu_{#mu} Fluxes at Various Experiments");
    hnumu[i]->Draw();

  }

  else{

    hnumu[i]-> Draw("same");

  }

}

```

The plot drawn does have the tick marks at the x-axis pointed towards the negative direction, which is what I want, but the numbering of the x-axis and the title of the x-axis then are also inverted are are placed above the x-axis and inside the plot, which is not what I want. How do I make sure that the tick marks point towards the negative direction and that the numbering of the x-axis and its title also stay below the x-axis?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [July 22, 2019, 7:40am UTC](https://root-forum.cern.ch/t/aesthetics-of-tick-marks-and-axis-titles/35284/2 "2019-07-22T07:40:56Z")

</div>

simply set a negative tick length

```auto
hnumu[i]->GetXaxis()->SetTickLength(-0.015);

```
