Hello, I would like to plot three non-uniform points 0.025 0.1 0.125, I am trying to display on the X-axis only the points 0.025 0.1 0.125 or display a string value (0.5x0.5x0.1 0.5x0.5x0. 4 0.5 x0.5x0.5) respectively.
I had tried with the examples from the Forum but I could not find a good solution.
test.C
void test()
{
TGraph *g1 = new TGraph("aa.txt");
g1->SetMarkerStyle(20);
g1->SetMarkerColorAlpha(kBlue, 0.35);
g1->GetYaxis()->SetTitle("Y axis");
g1->GetXaxis()->SetTitle("X axis");
g1->SetMarkerSize(1);
TAxis *axis = g1->GetXaxis();
axis->SetNdivisions(5, kTRUE);
g1->Draw("APL");
}
aa.txt
0.025 0.3
0.1 0.83
0.125 0.98
_
__
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided