TGraphErrors Ndivisions

hi Rooters
I’m trying to make a TGraphErrors with the xaxis ticks marked as 0, 3, 6, 9, 12, 15, 18, 21.

TGraphErrors *axis=new TGraphErrors();
axis->SetPoint(0, 0, 10);
axis->SetPoint(1, 21, 10);
axis->GetXaxis()->SetNdivisions(8);
axis->Draw(“a3”);

By varying Ndivisions I can only get the marks-

0, 5, 10, 15, 20 for Ndivisions=7 or lower
0, 2, 4, 6, 8… for Ndivisions=8 or higher

is it possible to get this done in multiples of 3?

best
Ellie

The way the labels’ optimisation is done it is not possible to get multiples of 3.