It seems not work when using “\cdot” or “bigdot” or “bullet”? what is the exact importing?
Please read tips for efficient and successful posting and posting code
ROOT Version: 6.24/04
Platform: Ubuntu 20.04
Compiler: Gcc 9.3.0
It seems not work when using “\cdot” or “bigdot” or “bullet”? what is the exact importing?
Please read tips for efficient and successful posting and posting code
ROOT Version: 6.24/04
Platform: Ubuntu 20.04
Compiler: Gcc 9.3.0
Can you be more specific and provide a few lines of code showing what you are doing ?
void dot(){
auto h = new TH1D("h","h",10,0,10);
h->GetYaxis()->SetTitle("B_{E} \\cdot E/s^{-1}");
h->Draw();
}
or:
void dot(){
auto h = new TH1D("h","h",10,0,10);
h->GetYaxis()->SetTitle("B_{E} #bullet E/s^{-1}");
h->Draw();
}
see TLatex documentation and in particular the interface to TMathText.
thanks!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.