# How to import "times signal" "dot or bigdot or bullet" when plotting pictures using TH1D class?

It seems not work when using “\cdot” or “bigdot” or “bullet”? what is the exact importing?

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 ?

I want to import the “times signal” like on the picture when plotting figures using TH1D class, i used
\cdot
\bigdot
\bullet
it seems all above do not work
here is the codes:
hist1->GetYaxis()->SetTitle(“B_{E} \bullet E/s^{-1}”);
hist1->GetYaxis()->SetTitle(“B_{E} \cdot E/s^{-1}”);
hist1->GetYaxis()->SetTitle(“B_{E} \bigdot E/s^{-1}”);

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.