Hi Maxim, As you noticed, the stats box did not work with precision 3 fonts. I have included your patch in CVS, but as you say, this should be carefully reviewed to optimize the width/height and positions. Thanks very much for this contribution. Rene Brun Maxim Nikulin wrote: > > Hi, > > If I try to specify font precision 3 (font size in pixels) for a > histogram stat box, I get a extremely large stat box. The first file > attached is a script to reproduce the problem. > > The second file in the attachment is a patch for quick solution. > Probably height calculation should be performed more carefully using > NDC<->pixels scale factor, although while stat box with is fixed it > wouldn't be very useful. > > -- > Maxim Nikulin > > P.S. To apply the patch type > patch -p1 < precision3-THistPainter.patch > from the top directory of ROOT sources. > > -------------------------------------------------------------------------------- > Name: stat_font3.C > stat_font3.C Type: text/x-c++src > Encoding: 7bit > > Name: precision3-THistPainter.patch > precision3-THistPainter.patch Type: text/x-patch > Encoding: 7bit
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:10 MET