Skip to content
Snippets Groups Projects
Commit 1c2047b3 authored by Rene Brun's avatar Rene Brun
Browse files

In TPaletteAxis::Paint, specify option "S" when painting the palette axis.

This uses a better algorithm when computing the axis tick length.


git-svn-id: http://root.cern.ch/svn/root/trunk@14707 27541ba8-7e3a-0410-8455-c3a389f83636
parent 65a70269
No related branches found
No related tags found
No related merge requests found
// @(#)root/histpainter:$Name: $:$Id: TPaletteAxis.cxx,v 1.13 2005/11/10 10:36:59 couet Exp $ // @(#)root/histpainter:$Name: $:$Id: TPaletteAxis.cxx,v 1.14 2006/03/20 21:43:43 pcanal Exp $
// Author: Rene Brun 15/11/2002 // Author: Rene Brun 15/11/2002
/************************************************************************* /*************************************************************************
...@@ -226,7 +226,7 @@ void TPaletteAxis::Paint(Option_t *) ...@@ -226,7 +226,7 @@ void TPaletteAxis::Paint(Option_t *)
// Paint the palette // Paint the palette
ConvertNDCtoPad(); ConvertNDCtoPad();
SetFillStyle(1001); SetFillStyle(1001);
Double_t ymin = fY1; Double_t ymin = fY1;
Double_t ymax = fY2; Double_t ymax = fY2;
...@@ -280,8 +280,8 @@ void TPaletteAxis::Paint(Option_t *) ...@@ -280,8 +280,8 @@ void TPaletteAxis::Paint(Option_t *)
gPad->PaintBox(xmin,y1,xmax,y2); gPad->PaintBox(xmin,y1,xmax,y2);
} }
Int_t ndiv = fH->GetZaxis()->GetNdivisions()%100; //take primary divisions only Int_t ndiv = fH->GetZaxis()->GetNdivisions()%100; //take primary divisions only
char chopt[5] = ""; char chopt[5] = "S ";
chopt[0] = 0; chopt[1] = 0;
strcat(chopt, "+L"); strcat(chopt, "+L");
if (ndiv < 0) { if (ndiv < 0) {
ndiv =TMath::Abs(ndiv); ndiv =TMath::Abs(ndiv);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment