Hatched histograms and tickmarks

mvl@nikhef.nl
Thu, 10 Jun 1999 16:50:42 +0200


Dear rooters,

Here is a (cosmetic) problem with hatched histograms and tickmarks. I've
tried several solutions, but none seems to work.

When you draw a hatched histogram, the tickmarks at the axes become
invisible at the places where the bars 'hit' the axes. This is of vourse
one way to do it, but I would prefer that the tickamrks remain visible. So
I tried the following:

MyHisto->GetYaxis()->Draw();

and, less elegant:

MyHisto->GetYaxis()->DrawAxis(xmin,ymin,xmin,ymax);

and, even less elegant:

TAxis TmpAxis = new TAxis();
MyHisto->GetYaxis()->Copy(TmpAxis);
TmpAxis()->Draw();

The last seemed to work, but it seems impossible to use one TmpAxis for
several axes/histograms, and later on it didn't work at all...

and:

MyHisto->DrawCopy();
MyHisto->Reset();
MyHisto->Draw("same");

also doesn't work.

Can anyone come up with a solution (other than redrawing all the axes in my
three plots, using TGAxis objects)?

Regards,

Marco