User Tools

Site Tools


Redraw axis to get Ticks on top

When you draw several histograms on the same pad, later histograms will cover the axis drawn together with the first histogram. To redraw the axis on top, you can use Draw(“axis same”):

hist1->Draw("Ep");        // to draw axis-range and label from hist1
hist2->Draw("hist same");
hist1->Draw("Ep same");   // to draw points on top
hist1->Draw("axis same"); // to redraw axis
root/redrawaxis.txt · Last modified: 2013/08/23 16:55 by nchiap