[root] / trunk / hist / histpainter / src / THistPainter.cxx Repository:
ViewVC logotype

Log of /trunk/hist/histpainter/src/THistPainter.cxx

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 49254 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 16 15:37:59 2013 UTC (21 months, 1 week ago) by couet
File length: 341684 byte(s)
Diff to previous 48447
fix doc

Revision 48447 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 1 13:07:58 2013 UTC (23 months, 3 weeks ago) by moneta
File length: 341684 byte(s)
Diff to previous 48442
from Gabriel: 

    - deprecated GetCellContent / GetCellError / SetCellContent / SetCellError -> GetBinContent / GetBinError/ SetBinContent / SetBinError provide the same functionality ; replaced these methods across ROOT (still in graf2d and main)
   - replaced SetCellError / SetCellContent / GetCellError / SetCellConten
   - refactored redundant logic (GetContourLevel, SetContent, Interpolate, SetBufferSize)
   - moved one-line methods to header file (SetMinimum, SetMaximum, GetXaxis, GetYaxis, GetZaxis, GetBinError)
   - TH2::Rebin2D has been simplified (6 for loops -> 3 for loops) => 2-3x speedup

Revision 48442 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 30 14:50:35 2013 UTC (23 months, 3 weeks ago) by couet
File length: 341699 byte(s)
Diff to previous 47921
apply the patch suggested here:
https://savannah.cern.ch/bugs/?100166

Revision 47921 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 7 14:43:46 2012 UTC (2 years, 1 month ago) by couet
File length: 341791 byte(s)
Diff to previous 47842
Make sure the palette is always first in the list of function. 
Fix: https://savannah.cern.ch/bugs/?98991

Revision 47842 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 5 09:54:57 2012 UTC (2 years, 1 month ago) by couet
File length: 341786 byte(s)
Diff to previous 46268
Fit parameters with very long name destroyed the stats display.
Example:
{
   gStyle->SetOptFit(111);
   TH1F *hist = new TH1F("hist","hist",100,-5,5);
   TF1 *fit = new TF1("fit","gaus",-5,5);
   fit->SetParName(2,"Parameter with very very very very long name");
   hist->FillRandom("gaus",5000);
   hist->Draw();
   hist->Fit(fit);
}

Revision 46268 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 2 13:16:29 2012 UTC (2 years, 3 months ago) by moneta
File length: 341698 byte(s)
Diff to previous 45923
Fix computation of underflow/overflows in statistic box displayed for 2d histogram.
This was broken after changes in TAxis::SetRange, when setting ranges including underflow/overflows

Revision 45923 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 10 17:55:44 2012 UTC (2 years, 4 months ago) by moneta
File length: 341808 byte(s)
Diff to previous 45899
suppress a compilaiton wanring in GetObjectInfo (need to increase buffer size for larger info message from TProfile's)

Revision 45899 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 7 09:11:14 2012 UTC (2 years, 4 months ago) by moneta
File length: 341808 byte(s)
Diff to previous 45764
- Add in THistPainter::GetObjectInfo the case of TProfile2D  to print also bin entries and bin error
  and disable printing bin information for 3D objects. Print in that case only x and y 

_ Remove TProfile::GetObjectInfo,  use now the inherited one from TH1 which is impelmented using THistPainter::GetObjectInfo

Revision 45764 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 30 16:35:14 2012 UTC (2 years, 4 months ago) by couet
File length: 340947 byte(s)
Diff to previous 44675
New option LEGO3

Revision 44675 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 13 15:42:55 2012 UTC (2 years, 7 months ago) by couet
File length: 339532 byte(s)
Diff to previous 44517
Make sure the 2D drawing options COL, ARR, CONT and BOX are ignored when used to plot a 1D histogram. 1D histograms plotted with one of these options is now drawn with the default 1D plotting option. This is useful when the default option in the TBrowser is, for instance, COL. Before this change the 1D histogram appeared as blank as explained here https://savannah.cern.ch/bugs/index.php?95348.

Revision 44517 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 4 14:55:15 2012 UTC (2 years, 7 months ago) by moneta
File length: 339044 byte(s)
Diff to previous 44301
in ShowProjectionX/Y use as  a name for the projection one which is built using the original histogram name

Revision 44301 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 24 13:48:22 2012 UTC (2 years, 8 months ago) by couet
File length: 338910 byte(s)
Diff to previous 43774
Apply the patch suggested here:
https://savannah.cern.ch/bugs/?94807

With option COL TProfile2D histograms are handled differently because, for this type of 2D
histograms, it is possible to know if an empty bin has been filled or not. So even
if all the bins' contents are positive some empty bins might be painted. And vice versa,
if some bins have a negative content some empty bins might be not painted.

Revision 43774 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 17 11:40:18 2012 UTC (2 years, 9 months ago) by couet
File length: 337880 byte(s)
Diff to previous 43573
With option TEXT, do not draw the bins with 0 content for 1D
histograms to be consistent with the 2D histograms case. 
Exemple:

root [0] TH1D * histo = new TH1D ("histo","",20,-5.,5.) ;
root [1] histo->FillRandom("gaus",1000) ; 
root [2] histo->Draw("hist,text") ;

Revision 43573 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 30 13:26:55 2012 UTC (2 years, 9 months ago) by couet
File length: 337847 byte(s)
Diff to previous 43194
The fit function was not drawn in the correct range when a fitted 2D histogram was painted with the option lego or surf.

Revision 43194 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 1 13:51:51 2012 UTC (2 years, 10 months ago) by couet
File length: 337716 byte(s)
Diff to previous 43186
- Document the option E for 2D histograms

Revision 43186 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 29 17:46:04 2012 UTC (2 years, 10 months ago) by couet
File length: 337296 byte(s)
Diff to previous 42958
- Fix the bug submitted here: http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=14257
In PaintTable the palette was deleted but not removed from the list of functions of the histograms. Later on the list of function was scanned (it was not empty). It crashed during the scan when the obsolete palette's null pointer was accessed. Now the palette is removed from the list of functions before being deleted. Similar wrong code was found in some other places (stats painting). The same fix has been applied (it was ok in PaintStats but wrong in PaintStats2 and PaintStats3).


- Remove some trailing blanks

Revision 42958 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 10 14:47:09 2012 UTC (2 years, 11 months ago) by moneta
File length: 337142 byte(s)
Diff to previous 42675
- add support for asymmetric Poisson error in the histogram (when the histogram is not weighted)

- Add  the methods TH1::GetBinErrorLow(ibin) and TH1::GetBinErrorUp(ibin)  
 - Add possibility to  use different bin errors by  using TH1::SetBinErrorOption(type). The type of errors which one can set are:
   - TH1::kNormal</tt>: this are the default errors (symmetric) based on the normal approximation. Bin error = sqrt(N).
        In case of a weighted histogram (non-integer bin content), the normal approximation is always used
   -  TH1::kPoisson: in this case the lower and upper error are defined by the 68% classical (frequentist) Poisson interval for N counts
        (Garwood Poisson interval).
  -  TH1::kPoisson2: as above but in this case a 95% (2-sigma) Poisson interval is used. 


- Add support in histpainter for drawing 1D and 2D asymmetric errors

Revision 42675 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 17 14:57:26 2012 UTC (3 years ago) by couet
File length: 336534 byte(s)
Diff to previous 42648
Fix coverity reports NULL_RETURNS

Revision 42648 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 16 14:01:53 2012 UTC (3 years ago) by couet
File length: 336467 byte(s)
Diff to previous 42562
Fix coverity reports DIVIDE_BY_ZERO

Revision 42562 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 21 15:11:00 2011 UTC (3 years, 1 month ago) by couet
File length: 336409 byte(s)
Diff to previous 42543
Take into account the absolute value of the histogram's minimum to compute the maximal boxes' size when an histogram is drawn with the option BOX.

Revision 42543 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 19 16:14:35 2011 UTC (3 years, 1 month ago) by couet
File length: 336244 byte(s)
Diff to previous 42470
In PaintBoxes when two histograms where painted on top of  each other with the option SAME, the plot was wrong if the minimum of the first histogram was not zero. (Thanks Axel).

Revision 42470 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 12 17:22:13 2011 UTC (3 years, 1 month ago) by couet
File length: 336232 byte(s)
Diff to previous 42155
Fix the bug described here:
https://savannah.cern.ch/bugs/?89778

Revision 42155 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 22 07:48:50 2011 UTC (3 years, 2 months ago) by moneta
File length: 336193 byte(s)
Diff to previous 41906
do not use default name when doing a projection in SetShowProjection 
(fix for bug https://savannah.cern.ch/bugs/index.php?88561 )

Revision 41906 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 11 14:03:15 2011 UTC (3 years, 2 months ago) by couet
File length: 336183 byte(s)
Diff to previous 41541
When 1D histograms are painted with the options TEXT and BAR simultaneously, the text for each bin is placed taking into account the bar offset
and bar width attributes. Previously, when several histogram were drawn that way, the texts overlapped.

Revision 41541 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 24 13:31:15 2011 UTC (3 years, 3 months ago) by rdm
File length: 335959 byte(s)
Diff to previous 41369
From Timur:
changes for iOS graphics support.

Revision 41369 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 12 15:02:16 2011 UTC (3 years, 3 months ago) by couet
File length: 331807 byte(s)
Diff to previous 41368
Fix Coverty reports #32879 #32878

Revision 41368 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 12 14:53:53 2011 UTC (3 years, 3 months ago) by couet
File length: 331776 byte(s)
Diff to previous 41367
Fix Coverty report #33296

Revision 41367 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 12 14:39:54 2011 UTC (3 years, 3 months ago) by couet
File length: 331742 byte(s)
Diff to previous 41364
Fix Coverty report #33303

Revision 41364 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 12 14:26:06 2011 UTC (3 years, 3 months ago) by couet
File length: 331706 byte(s)
Diff to previous 41249
Fix Coverty report #33295

Revision 41249 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 7 08:51:25 2011 UTC (3 years, 3 months ago) by couet
File length: 331670 byte(s)
Diff to previous 41230
Fix coverity reports #34549 #34550 #34551

Revision 41230 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 6 15:18:56 2011 UTC (3 years, 3 months ago) by couet
File length: 331600 byte(s)
Diff to previous 41224
Fix coverity report #33300

Revision 41224 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 6 14:10:08 2011 UTC (3 years, 3 months ago) by couet
File length: 331566 byte(s)
Diff to previous 41223
Fix coverity report #33224

Revision 41223 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 6 13:58:18 2011 UTC (3 years, 3 months ago) by couet
File length: 331544 byte(s)
Diff to previous 41211
Fix coverity report #33223

Revision 41211 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 6 12:59:20 2011 UTC (3 years, 3 months ago) by couet
File length: 331050 byte(s)
Diff to previous 41047
Fix coverity reports (NULL_RETURNS)

Revision 41047 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 28 11:13:39 2011 UTC (3 years, 3 months ago) by couet
File length: 331023 byte(s)
Diff to previous 40781
Make sure  the unique canvas name generated in SetShowProjection starts with a letter, and not with a number,  to avoid to generate wrong macro when the canvas is saved as a .C file.

Revision 40781 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 31 16:20:19 2011 UTC (3 years, 4 months ago) by couet
File length: 331023 byte(s)
Diff to previous 40780
Fix https://savannah.cern.ch/bugs/index.php?85720
TH2Poly was wrongly picked in the canvas area after a zoom along axis.

Revision 40780 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 31 14:59:33 2011 UTC (3 years, 4 months ago) by couet
File length: 330701 byte(s)
Diff to previous 40762
Small doc fixes

Revision 40762 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 30 16:39:36 2011 UTC (3 years, 4 months ago) by couet
File length: 330720 byte(s)
Diff to previous 40093
Fix the problem reported here http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=13329&p=57271#p57271 with the option E0. The clipping was not correct.

Revision 40093 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 1 07:57:51 2011 UTC (3 years, 6 months ago) by couet
File length: 330462 byte(s)
Diff to previous 39620
The Palette and the statistics box were not pickable when TH2Poly was drawn with option COLZ.

Revision 39620 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 9 06:38:00 2011 UTC (3 years, 7 months ago) by moneta
File length: 330449 byte(s)
Diff to previous 39592
fix a memory leak (Thanks to Robert Hatcher)

Revision 39592 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 8 08:11:01 2011 UTC (3 years, 7 months ago) by moneta
File length: 330491 byte(s)
Diff to previous 38687
When drawing scatter plot for TH2 or TH2Poly do not use gRandom, but an independent random generator instance,
to avoid interfering with gRandom 
This fixes the  bug <a href="https://savannah.cern.ch/bugs/?83021" >83021</a>.
Now the same sequence is also used for the same histograms, giving therefore the same scatter plot for the same
histogram.

Revision 38687 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 31 07:50:15 2011 UTC (3 years, 9 months ago) by couet
File length: 330268 byte(s)
Diff to previous 38314
- Minor help improvement.

Revision 38314 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 7 10:49:00 2011 UTC (3 years, 10 months ago) by couet
File length: 330091 byte(s)
Diff to previous 38229
- In PaintFunction TF2 are drawn as surfaces if the
  histogram plotting option is LEGO or SURF and as contours
  if the histogram plotting option is not a 3D one.

Revision 38229 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 25 15:32:43 2011 UTC (3 years, 10 months ago) by couet
File length: 329801 byte(s)
Diff to previous 38179
- Add a protection in SetShowProjectionX and Y
  in case the 1D histogram showing the projection
  was not created.

Revision 38179 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 21 14:31:01 2011 UTC (3 years, 11 months ago) by couet
File length: 329717 byte(s)
Diff to previous 37884
- Help improvements

Revision 37884 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 26 12:01:12 2011 UTC (3 years, 11 months ago) by couet
File length: 329619 byte(s)
Diff to previous 37814
- Protection added in PaintBoxes. I case two histograms
  were plotted in the same pad (the 2nd one with option SAME),
  The clipping was not correct when an interactive zoom 
  was performed.

Revision 37814 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 20 12:17:26 2011 UTC (4 years ago) by couet
File length: 330150 byte(s)
Diff to previous 37733
- Fix the problem reported here: 
  http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=11984
  It was a side effect of this fix:
  https://savannah.cern.ch/bugs/?49463

Revision 37733 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 7 09:41:53 2011 UTC (4 years ago) by couet
File length: 330150 byte(s)
Diff to previous 37634
- Doc update

Revision 37634 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 17 15:54:37 2010 UTC (4 years, 1 month ago) by couet
File length: 329860 byte(s)
Diff to previous 37619
- Fix https://savannah.cern.ch/bugs/?49463
- Improve TH2Poly Help

Revision 37619 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 17 09:04:05 2010 UTC (4 years, 1 month ago) by couet
File length: 328241 byte(s)
Diff to previous 37541
- The previous patch created a problem with option COL and LogZ. Now fixed.
  This will also go in the path version.

Revision 37541 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Dec 11 10:50:58 2010 UTC (4 years, 1 month ago) by couet
File length: 328214 byte(s)
Diff to previous 37202
- Fix: https://savannah.cern.ch/bugs/?75542

Revision 37202 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 2 17:05:56 2010 UTC (4 years, 1 month ago) by couet
File length: 328079 byte(s)
Diff to previous 36953
- Improve TH2Poly doc.

Revision 36953 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 25 17:27:16 2010 UTC (4 years, 1 month ago) by couet
File length: 325571 byte(s)
Diff to previous 36694
- Add the TEXt and SCAT option for the TH2Poly

Revision 36694 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 16 16:12:13 2010 UTC (4 years, 2 months ago) by couet
File length: 318767 byte(s)
Diff to previous 36691
- Remove a debug printf in PaintTH2PolyColorLevels

Revision 36691 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 16 15:58:12 2010 UTC (4 years, 2 months ago) by couet
File length: 318799 byte(s)
Diff to previous 36669
- Implement the log scale on Z for the TH2Poly drawn with option COL
- Implement the option COLZ

Revision 36669 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 15 14:36:10 2010 UTC (4 years, 2 months ago) by couet
File length: 317486 byte(s)
Diff to previous 36530
- Use tutorials/hist/th2polyBoxes.C in THistPainter doc.

Revision 36530 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 8 10:24:42 2010 UTC (4 years, 2 months ago) by couet
File length: 318120 byte(s)
Diff to previous 36529
- New class TH2Poly (histograms with polygonal bins)

Revision 36529 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 8 09:54:14 2010 UTC (4 years, 2 months ago) by moneta
File length: 314098 byte(s)
Diff to previous 36528
fix previous commit (casting to TH2 should not be done)

Revision 36528 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 8 09:25:00 2010 UTC (4 years, 2 months ago) by moneta
File length: 314116 byte(s)
Diff to previous 36391
- fix axis label of the 2D projected histogram obtained with ShowProjection
 (this fixes bug https://savannah.cern.ch/bugs/?74967 )

- fix the 1D projection when using ShowProjection
 (a 2D was done before instead of a 1D histogram)

Revision 36391 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 21 09:58:36 2010 UTC (4 years, 3 months ago) by couet
File length: 313786 byte(s)
Diff to previous 36249
- In some doc, CreateGradientColorTable was wrongly mentionned as a TStyle
  method.

Revision 36249 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Oct 10 10:28:31 2010 UTC (4 years, 3 months ago) by brun
File length: 313786 byte(s)
Diff to previous 36183
use strlcat

Revision 36183 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 8 10:09:11 2010 UTC (4 years, 3 months ago) by brun
File length: 313687 byte(s)
Diff to previous 36165
Mark some coverity reports as intentional

Revision 36165 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 7 15:46:32 2010 UTC (4 years, 3 months ago) by couet
File length: 312513 byte(s)
Diff to previous 36077
- reactivate the option ERR for TGraph2D.

Revision 36077 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 5 09:16:06 2010 UTC (4 years, 3 months ago) by brun
File length: 312452 byte(s)
Diff to previous 35957
Remove Hoption.Plus and corresponding code

Revision 35957 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 1 07:46:51 2010 UTC (4 years, 3 months ago) by couet
File length: 315748 byte(s)
Diff to previous 35800
- coverity #11670

Revision 35800 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 27 15:26:00 2010 UTC (4 years, 3 months ago) by couet
File length: 315715 byte(s)
Diff to previous 35759
- Make sure some empty frame is drawn when a 2D empty histogram
  is painted with log scale along the Z axis.

Revision 35759 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 27 07:33:38 2010 UTC (4 years, 3 months ago) by couet
File length: 315595 byte(s)
Diff to previous 35568
- Log axis with TH3 did not work. Bug visible with:
  TH3F h3("h3","h3",10,1,1000,10,1,1000,10,1,1000)
  h3.Draw()
  gPad->SetLogx(1);

Revision 35568 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 22 08:13:37 2010 UTC (4 years, 4 months ago) by brun
File length: 315490 byte(s)
Diff to previous 35522
Replace calls to sprintf by snprintf

Revision 35522 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 21 10:18:19 2010 UTC (4 years, 4 months ago) by brun
File length: 314814 byte(s)
Diff to previous 35516
Fix coverity reports

Revision 35516 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 21 09:04:13 2010 UTC (4 years, 4 months ago) by couet
File length: 314804 byte(s)
Diff to previous 35505
- Back to strncpy in MakeChopt. The options were not correctly parsed
  with strcpy or strclpy.

Revision 35505 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 21 08:18:20 2010 UTC (4 years, 4 months ago) by brun
File length: 314665 byte(s)
Diff to previous 35504
Fix strlcpy calls

Revision 35504 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 21 06:56:53 2010 UTC (4 years, 4 months ago) by brun
File length: 314804 byte(s)
Diff to previous 35475
Fix calls to strlcpy

Revision 35475 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 20 18:04:46 2010 UTC (4 years, 4 months ago) by brun
File length: 314804 byte(s)
Diff to previous 35100
Replace calls to strncpy by strlcpy

Revision 35100 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 1 09:01:27 2010 UTC (4 years, 4 months ago) by couet
File length: 314804 byte(s)
Diff to previous 35085
- Make sure some empty frame is painted when an empty histogram is painted
  with log scale along the Y axis.

Revision 35085 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 31 09:58:01 2010 UTC (4 years, 4 months ago) by brun
File length: 314682 byte(s)
Diff to previous 35060
In THistPainter::PaintTable change the way the palette is deleted in the list of functions.

Revision 35060 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 29 08:39:10 2010 UTC (4 years, 4 months ago) by brun
File length: 314635 byte(s)
Diff to previous 35046
From Mattias Ellert
In the file hist/histpainter/src/THistPainter.cxx there is a typo in the documentation mark-up. 
The same typo is repeated 11 times!!! 
It says gStyle->SePalette() instead of gStyle->SetPalette()

Revision 35046 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 27 14:25:10 2010 UTC (4 years, 4 months ago) by couet
File length: 314624 byte(s)
Diff to previous 35034
- Some init missing in ctor (coverity).

Revision 35034 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 27 08:03:06 2010 UTC (4 years, 4 months ago) by couet
File length: 314540 byte(s)
Diff to previous 34565
- In PaintStats, in fFunctions->Remove(stats),"stats" was
  a freed pointer.

Revision 34565 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 23 05:34:39 2010 UTC (4 years, 6 months ago) by brun
File length: 314541 byte(s)
Diff to previous 34286
Modify THistPainter::PaintText such that empty cells can be drawn when gStyle->SetHistMinimumZero() has been called.

Revision 34286 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 1 20:38:57 2010 UTC (4 years, 6 months ago) by rdm
File length: 314429 byte(s)
Diff to previous 34136
fix format errors related to TString::Form(), TString::Format(), Form()
and Printf().

Revision 34136 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 25 15:08:21 2010 UTC (4 years, 7 months ago) by moneta
File length: 314044 byte(s)
Diff to previous 34128
fix precision issue in PaintInit.
 Use now a relative difference for min and max  and smaller values

Revision 34128 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 25 09:15:01 2010 UTC (4 years, 7 months ago) by couet
File length: 314036 byte(s)
Diff to previous 34115
- Fix a precision issue in PaintInit. Problem way seen with:
  TF1 *f = new TF1("f","100*exp(-x)*exp(x-2.)",0.,2.0); 
  f->Draw();

Revision 34115 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 24 16:03:53 2010 UTC (4 years, 7 months ago) by couet
File length: 313840 byte(s)
Diff to previous 33768
- New parameter bf() in the SPEC option to define the buffer size
  used by TSpectrum2Painter. It is needed in case of very
  large canvases like 8000x5000.

Revision 33768 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 8 08:08:50 2010 UTC (4 years, 7 months ago) by couet
File length: 313477 byte(s)
Diff to previous 33736
- Improve the THStack doc; option HIST

Revision 33736 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 3 12:45:32 2010 UTC (4 years, 7 months ago) by couet
File length: 312552 byte(s)
Diff to previous 33715
- PaintAxis: Do not redraw the axis labels and the axis title in case
  of "RedrawAxis". Only the tick marks are redrawn. Redrawing the
  labels and title make them appear a bit thicker, as said here:
  https://savannah.cern.ch/bugs/index.php?68118

Revision 33715 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 2 13:01:12 2010 UTC (4 years, 7 months ago) by couet
File length: 312282 byte(s)
Diff to previous 33475
- Fix the bug reported here:
  https://savannah.cern.ch/bugs/index.php?64434
  (option "][" on Ubuntu)

Revision 33475 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 12 09:30:08 2010 UTC (4 years, 8 months ago) by couet
File length: 312245 byte(s)
Diff to previous 33341
- Small doc improvement (option TEXT).

Revision 33341 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 3 09:11:05 2010 UTC (4 years, 8 months ago) by couet
File length: 312089 byte(s)
Diff to previous 33265
- Small fix in an example.

Revision 33265 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 28 09:59:45 2010 UTC (4 years, 8 months ago) by couet
File length: 312053 byte(s)
Diff to previous 33262
- The following lines generated an empty stats box:
  gStyle->SetStatFont(43);
  gStyle->SetStatFontSize(12); 
  TH2D *h2 = new TH2D("h2","h2",10,0,1,10,0,1); 
  h2->Draw();

Revision 33262 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 28 09:24:13 2010 UTC (4 years, 8 months ago) by couet
File length: 311957 byte(s)
Diff to previous 32930
- In the case of profile histograms it is possible to print the number
  of entries instead of the bin content. It is enough to combine the  
  option "E" (for entries) with the option "TEXT".

Revision 32930 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 9 16:18:32 2010 UTC (4 years, 9 months ago) by pcanal
File length: 310587 byte(s)
Diff to previous 32920
Prefer the use of InheritsFrom(TClass*) over InheritsFrom(const char*) as long as 
it does not increase the library dependencies.

Revision 32920 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 9 08:26:29 2010 UTC (4 years, 9 months ago) by couet
File length: 310509 byte(s)
Diff to previous 32510
- Implement gStyle->SetHistMinimumZero() for the option HBAR

Revision 32510 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 9 15:55:58 2010 UTC (4 years, 10 months ago) by couet
File length: 309166 byte(s)
Diff to previous 32425
- In the option COL POL change the x and y axis mapping
  on the radius and angle is now the same as SURF1,POL and 
  TGraphPolar

Revision 32425 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 1 17:05:11 2010 UTC (4 years, 10 months ago) by couet
File length: 309163 byte(s)
Diff to previous 32330
- doc update

Revision 32330 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 11 14:24:46 2010 UTC (4 years, 11 months ago) by couet
File length: 309091 byte(s)
Diff to previous 32200
- The following macro displayed the hitograms outside of the frame.
{
   TCanvas *c = new TCanvas("c","c");
   c->Divide(2,1);
   gStyle->SetHistMinimumZero();
   TH1F* h = new TH1F("h","h", 44, -0.5, 43.5);
   h->SetBarWidth(0.7);
   h->SetBarOffset(0.2);
   h->SetFillColor(kGreen);
   for (int i=0;i<44; i++ ) h->Fill(i, -i-60);
   c->cd(1); h->DrawCopy("bar1");
   c->cd(2); h->DrawCopy("b");
}

Revision 32200 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 3 16:54:27 2010 UTC (4 years, 11 months ago) by couet
File length: 309052 byte(s)
Diff to previous 31966
- The following macro didn't draw any box. Because of a precision
  problem the filled bin was not drawn.
  {
     double yarr[] = { 1.0, 2.0, 3.0, 4.0 };
     double xarr[] = { 0.01, 0.02, 0.03, 0.04 };
     TH2D *h = new TH2D("h","h",3,xarr,3,yarr);
     h->Fill(0.011,2.5);
     h->Draw("box");           
  }

Revision 31966 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 6 14:05:02 2010 UTC (5 years ago) by couet
File length: 309036 byte(s)
Diff to previous 31658
- Fix the problem mentionned here: 
  https://savannah.cern.ch/bugs/index.php?61112
  After executing the following macro, zooming the X axis interactively
  generated the error message:
  Error in <TGraphPainter::PaintGraphHist>: X must have N+1 values with option N 

   {
      int n = 70;
      TH1F h("h","test",n,0.,30.);
      TRandom3 rndm_engine;
      for (int i=0; i<10000; ++i) h->Fill(rndm_engine->Gaus(15.,4.));
      TF1 f("f","gaus");
      h->Fit("f");
      gPad->SetLogx();
   }

Revision 31658 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 8 14:20:56 2009 UTC (5 years, 1 month ago) by couet
File length: 308979 byte(s)
Diff to previous 30946
- Fix typo

Revision 30946 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 2 15:37:24 2009 UTC (5 years, 2 months ago) by couet
File length: 308979 byte(s)
Diff to previous 30749
- New plotting option SURF7 implemented as requested here:
  http://root.cern.ch/phpBB2/viewtopic.php?t=9369&highlight=contour
  It is like SURF3 but inverted ie" the surface is drawn with color
  and the contour with lines.
- Update the doc.

Revision 30749 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 15 16:33:04 2009 UTC (5 years, 3 months ago) by brun
File length: 306090 byte(s)
Diff to previous 30643
From Matthew Strait:
This patch fixes the spelling of "function" in the root source code
and documentation, which is misspelled (sometimes as part of larger
"function"-based words) at least 152 times:

* "funciton" 48 times
* "funcion" 36 times
* "funtion" 23 times
* "fucntion" 17 times
* "functionn" 6 times
* "fuction" 6 times
* "fuunction" 4 times
* "functioin" 3 times
* "fonction" 3 times
* "funstion" twice
* "fnuction" once
* "functiom" once
* "functio" once
* "funcition" once

Revision 30643 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 9 09:57:40 2009 UTC (5 years, 3 months ago) by moneta
File length: 306089 byte(s)
Diff to previous 29775
- Round  the number of entries displayed in the statistics box to the closest integer value. This fixes a problem observed when 
 displaying the effective entries of a weighted histogram. 

- update release notes

Revision 29775 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 13 15:07:28 2009 UTC (5 years, 5 months ago) by moneta
File length: 306073 byte(s)
Diff to previous 29308
- implement new method  IntegralAndError (for TH1, TH2 and TH3) calculating both the integral and the error from the bin content and error od the histogram. 
  Refactor also the Integral method to use the same common code for all the histogram types

  Implement also a new version of TF1::Integral error working for multi-dimensional functions 

 Remove the drawing in the statistical box for TH3 of the underflow/overflow table, untila an appropriate solution is found. Before a 2D-like table was drawn with all zero.

Revision 29308 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 2 12:23:27 2009 UTC (5 years, 6 months ago) by couet
File length: 305916 byte(s)
Diff to previous 29303
- Improve the "Option B example".

Revision 29303 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 2 09:50:38 2009 UTC (5 years, 6 months ago) by couet
File length: 305853 byte(s)
Diff to previous 28884
- Complete the documentation about the "b", "bar" and "hbar" options.

Revision 28884 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 10 14:38:44 2009 UTC (5 years, 7 months ago) by couet
File length: 304293 byte(s)
Diff to previous 28724
- Update the COL option help.

Revision 28724 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 27 14:20:00 2009 UTC (5 years, 7 months ago) by couet
File length: 304019 byte(s)
Diff to previous 28703
- In PaintTriangles if the option SAME is used, the view
  limits are taken from the current TView.

Revision 28703 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 25 10:14:23 2009 UTC (5 years, 8 months ago) by couet
File length: 303542 byte(s)
Diff to previous 28677
- Improve the COL option doc

Revision 28677 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 20 12:59:06 2009 UTC (5 years, 8 months ago) by couet
File length: 303306 byte(s)
Diff to previous 28339
- Fix the problem submited here:
  http://root.cern.ch/phpBB2/viewtopic.php?p=36022#36022
  In PaintAxis, repainting alphanumeric labels axis on a plot 
  done with the option HBAR (horizontal) needs some adjustements.

Revision 28339 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 23 14:33:52 2009 UTC (5 years, 9 months ago) by couet
File length: 302032 byte(s)
Diff to previous 28199
- Improve the help of the LIST option.

Revision 28199 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 14 14:14:57 2009 UTC (5 years, 9 months ago) by couet
File length: 301630 byte(s)
Diff to previous 28127
- Update the doc about the stats painting.

Revision 28127 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 7 13:12:48 2009 UTC (5 years, 9 months ago) by couet
File length: 300959 byte(s)
Diff to previous 27399
- More improvements in GetBestFormat. There was still cases
  where the error was not displayed with E notation whereas
  the value was. A new test will be introduced in 
  stressGraphics to cover all the cases handled by
  GetBestFormat.

Revision 27399 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 10 15:01:33 2009 UTC (5 years, 11 months ago) by couet
File length: 300834 byte(s)
Diff to previous 26338
- In case the errors of the fit parameters had large values (>E+07) 
  the fit result in the stat box looed not very nice. 
  The Method GetBestFormat have been changed. The problem was
  visible with the following macro:
  {
     gStyle->SetOptFit(1111);
     h = new TH1F("h","h", 2,0.,1.);
     h->SetBinContent(1, 5E8);
     h->SetBinError(1, 4.9E8);
     h->Fit("pol0");
  }

Revision 26338 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 21 12:46:42 2008 UTC (6 years, 2 months ago) by couet
File length: 300834 byte(s)
Diff to previous 25853
- Tiny help improvment

Revision 25853 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 17 06:43:30 2008 UTC (6 years, 3 months ago) by brun
File length: 300801 byte(s)
Diff to previous 25750
Increase some buffer sizes. Fixes https://savannah.cern.ch/bugs/?42959

Revision 25750 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 9 09:12:25 2008 UTC (6 years, 3 months ago) by couet
File length: 300797 byte(s)
Diff to previous 25489
- Make sure the frame is transparent when the a surface is drawn using the 
  option SAME.
- Complete the help for the GL options.

Revision 25489 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 22 13:05:29 2008 UTC (6 years, 4 months ago) by brun
File length: 300507 byte(s)
Diff to previous 24700
From Lorenzo:
-move TVirtualFitter from core to mathcore.
-remove FitPanel method from THistPainter
-new plugins for Fumili and FitPanel. Use now plug-in manager to create FitPanel.

Revision 24700 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 8 09:12:19 2008 UTC (6 years, 6 months ago) by couet
File length: 300987 byte(s)
Diff to previous 24675
- Add a paragraph about the option "SAME".
- Fix typos.

Revision 24675 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 7 08:36:13 2008 UTC (6 years, 6 months ago) by couet
File length: 299897 byte(s)
Diff to previous 24484
- Complete the errors drawing paragraph.

Revision 24484 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 23 15:36:54 2008 UTC (6 years, 7 months ago) by couet
File length: 299101 byte(s)
Diff to previous 24364
- In revision 20804, a test has been added to:
  "Make option BAR work with option HIST"
  This test worked nicely when Hoption.Bar >= 10 (option "BAR" and "HBAR").
  But, in some cases, it disabled th case Hoption.Bar = 1 (simple option "B").

Revision 24364 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 19 09:17:21 2008 UTC (6 years, 7 months ago) by couet
File length: 299099 byte(s)
Diff to previous 24297
- Better formatting of the HTML code to make it more readable
  and easier to modify. In particular the tables describing 
  the options.

Revision 24297 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 17 07:21:45 2008 UTC (6 years, 7 months ago) by couet
File length: 298960 byte(s)
Diff to previous 24084
- New doc.

Revision 24084 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 1 15:34:01 2008 UTC (6 years, 7 months ago) by brun
File length: 283656 byte(s)
Diff to previous 23662
From Olivier and me:

Split the TGraph classes to move the graphics code to separate classes.
These classes will be moved to the hist directory once the classes will be ok.
The TGraphs are painted via the TVirtualGraphPainter class and its concrete
implementation TGraphPainter.
At the difference of the TH1 classes for which a different painter is created
when drawing each histogram, one single TGraphPainter class is created.
The TGraphPainter class does not have internal state, all the information
from TGraph is passed to the drawing functions via parameters.

Revision 23662 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 6 14:26:07 2008 UTC (6 years, 8 months ago) by couet
File length: 283626 byte(s)
Diff to previous 23594
- Mods to allow interactive zooming with option CONT4

Revision 23594 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 28 13:51:21 2008 UTC (6 years, 8 months ago) by couet
File length: 283607 byte(s)
Diff to previous 22694
- In PaintH3 the palette is drawn in case of option COLZ. This is useful
  when a TTree 4D plot is painted with that option.

Revision 22694 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 17 20:23:21 2008 UTC (6 years, 10 months ago) by rdm
File length: 283264 byte(s)
Diff to previous 22252
move hist, histpainter, spectrum and spectrumpainter in the hist package.

Revision 22252 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 20 15:12:39 2008 UTC (6 years, 11 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 283264 byte(s)
Diff to previous 21964
- Option "FUNC" was not documented.

Revision 21964 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 4 10:44:19 2008 UTC (6 years, 11 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 283134 byte(s)
Diff to previous 21648
- In PaintBoxes: when all the bins' contents were negative, the boxes were not
  painted correclty.

Revision 21648 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 11 16:16:26 2008 UTC (7 years ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 283134 byte(s)
Diff to previous 21621
- When used with any LEGO option, the option "0" allows to not draw the empty
  bins.

Revision 21621 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 10 09:54:17 2008 UTC (7 years ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 282674 byte(s)
Diff to previous 21231
- complete help for option COL

Revision 21231 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 6 15:22:14 2007 UTC (7 years, 1 month ago) by rdm
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 282282 byte(s)
Diff to previous 20914
change all occurances where %x is used to format a pointer to %lx.

Revision 20914 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 20 09:41:09 2007 UTC (7 years, 2 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 282276 byte(s)
Diff to previous 20882
- Fix a memory leak in PaintContour (found by Bertrand using "purify").

Revision 20882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:31:26 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 282251 byte(s)
Diff to previous 20804
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 20804 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 14 14:04:48 2007 UTC (7 years, 2 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 282251 byte(s)
Diff to previous 20580
- Make option BAR work with option HIST as explain in the Paint() method 
  help (option HIST). Previously the option BAR was ignored when an histo
  was painted with "BAR HIST".

Revision 20580 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 31 12:22:23 2007 UTC (7 years, 2 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 282235 byte(s)
Diff to previous 20395
- Complete the THistPainter::Paint() help with the GL options and interactive
  commands description.

Revision 20395 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 18 09:55:59 2007 UTC (7 years, 3 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 275815 byte(s)
Diff to previous 20385
- Two new options in PaintErrors: E5 and E6. They are like E3 and E4 but 
  the empty bins are ignored.

Revision 20385 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 17 08:08:48 2007 UTC (7 years, 3 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 275181 byte(s)
Diff to previous 19826
- Fix https://savannah.cern.ch/bugs/index.php?29574.
  In PaintInit, in case of (log scale long X) && (xmin <=0) && (option
  SAME), Hparam.xmin should be initialise with the Pad xmin value instead
  of 0.1*binwidth.

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 275054 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 275111 byte(s)
Diff to previous 19762
remove :$ from tag line

Revision 19762 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 6 00:28:36 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 275121 byte(s)
Diff to previous 19722
From Olivier:
Fix the bug described here: https://savannah.cern.ch/bugs/?29056
When the option "PCOL" was used to draw a TGraph2D having already
its underlaying histrogram created, the histogram was plotted with
option "COL" before the TGraph2D was plotted with option "PCOL".

Revision 19722 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 29 16:28:53 2007 UTC (7 years, 4 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 275095 byte(s)
Diff to previous 18634
- PainText: Revision 1.261 (ROOT 5.11) made sure that 2D histograms with
  constant values were plotted correctly with option TEXT. Doing that the
  empty bins were plotted also. That is now fixed: empty bin are not plotted
  as before this change.

Revision 18634 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 2 14:37:42 2007 UTC (7 years, 8 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 275084 byte(s)
Diff to previous 18206
- In Paint2DErrors: in case of option "lego e1" the z axis was painted twice.

Revision 18206 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 8 17:12:05 2007 UTC (7 years, 10 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 275016 byte(s)
Diff to previous 17967
Make use of the new functions TColor::GetColorBright and TColor::GetColorDark

Revision 17967 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 15 15:04:41 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 274780 byte(s)
Diff to previous 17677
-replace calls to gROOT->GetMakeDefCanvas()() by gROOT->MakeDefCanvas()

Revision 17677 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Feb 4 07:54:52 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 274830 byte(s)
Diff to previous 17581
Use forward declarations of TH1 and TCutG

Revision 17581 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 30 11:49:15 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 274812 byte(s)
Diff to previous 17517
-Replace calls to gROOT->GetClass by TClass::GetClass
-Remove unused references to TROOT.h
-Add include TClass.h in classes assuming an implicit include by other classes

Revision 17517 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 25 16:28:41 2007 UTC (8 years ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 274789 byte(s)
Diff to previous 17252
- In Paint2DErrors and PaintArrows the cuts were not taken into account.
  Commands like:
  hpxpy->Draw("ARR [cutg]");
  hpxpy->Draw("E [cutg]");
  produced a complete plot.

Revision 17252 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 3 14:24:58 2007 UTC (8 years ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 274261 byte(s)
Diff to previous 17180
From Sergey Skononov:
This bug is connected with fixing bug #22317 which I submitted previously.
Unfortunately, I got it only after release 5.14 was published.
Due to the fix in THistPainter::PaintBarH the PaintAxis call was moved to the
very end of the routine. But, actually, it should come before the X and Y axis
pointers being permuted back. As I checked, now it looks like X axis
attributes have effect on the Y axis and vice versa.

Revision 17180 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 12 14:03:04 2006 UTC (8 years, 1 month ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 274261 byte(s)
Diff to previous 17145
- Change comments according to the new $ROOTSYS/tutorials structure.

Revision 17145 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 11 09:26:50 2006 UTC (8 years, 1 month ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 274241 byte(s)
Diff to previous 16959
- In PaintBarH axis are now painted after the histogram drawing.

Revision 16959 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 27 15:22:28 2006 UTC (8 years, 1 month ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 274240 byte(s)
Diff to previous 16952
- THistPainter::PaintH3Iso now takes into account the pad margins.
- Remove trailing blanks.

Revision 16952 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 27 10:38:30 2006 UTC (8 years, 1 month ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 276856 byte(s)
Diff to previous 16942
- New option PIE to paint TH1. It uses TPie.
- Coding conventions (in THistPainter::PaintSpecialObjects)

Revision 16942 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 25 09:02:22 2006 UTC (8 years, 2 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 276378 byte(s)
Diff to previous 16924
Add new static function:
void THistPainter::PaintSpecialObjects(const TObject *obj, Option_t *option)
   // Static function to paint special objects like vectors and matrices
   // This function is called via gROOT->ProcessLine to paint these objects
   // without having a direct dependency of the graphics or histogramming system

Revision 16924 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 24 14:05:44 2006 UTC (8 years, 2 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 274876 byte(s)
Diff to previous 16769
Remove dependency from TVirtualUtilPad

Revision 16769 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 15 14:12:27 2006 UTC (8 years, 2 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 275477 byte(s)
Diff to previous 16709
- Option "E" and "TEXT" combined produce now a meaningful plot according
  to the suggestion made here: https://savannah.cern.ch/bugs/?20698
  Previously this combination wrongly produced a 3D error plot superimposed
  on a 2D text plot.

Revision 16709 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 8 13:12:36 2006 UTC (8 years, 2 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 274783 byte(s)
Diff to previous 16304
From Olivier:
Mods in view of the new spectrumpainter from Miroslav Morhac

Revision 16304 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 20 14:23:36 2006 UTC (8 years, 4 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 274142 byte(s)
Diff to previous 16302
- PaintBar take into account the value returned by gStyle->GetHistMinimumZero()

Revision 16302 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 20 11:46:13 2006 UTC (8 years, 4 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 274082 byte(s)
Diff to previous 16295
- ShowProjectionX and ShowProjectionY set the log scales on the projection
  if they were set on the original histogram (suggested by V.Boudry).

Revision 16295 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 19 12:18:37 2006 UTC (8 years, 4 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 273943 byte(s)
Diff to previous 16269
From Axel:
- Fixes a typo (op | instead of ||).

Revision 16269 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 14 15:06:26 2006 UTC (8 years, 4 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 273942 byte(s)
Diff to previous 16256
- Complete Paint() and PaintH3() helps.
- On TH3 histograms, the option "LEGO" works now like the option "BOX"
  (previously it was not implemented).

Revision 16256 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 13 15:33:31 2006 UTC (8 years, 4 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 273356 byte(s)
Diff to previous 16249
- "option" decoding in SetShowProjection was wrong. For projections having
  only one letter "x", "y" or "z" fShowOption had a random value.

Revision 16249 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 13 11:53:52 2006 UTC (8 years, 4 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 273439 byte(s)
Diff to previous 16248
- The previous fix must also be applied in ShowProjection3.

Revision 16248 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 13 08:17:56 2006 UTC (8 years, 4 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 273433 byte(s)
Diff to previous 16074
Fix a problem reported by Khamit Ardashev at http://root.cern.ch/phpBB2/viewtopic.php?t=3930
"TH2::ShowProjectionY seems to reuse the same canvas irrespectively of the fact that I invoked it for 2-nd histogram and that 2nd canvas has been created automacilly. So, I have two 2D histograms and when I roll mouse over bins in one or another projection is updated in the same "projection" canvas. Couldn't it remember which histogram it is invoked from and where to draw projections ?"

Revision 16074 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 22 12:23:27 2006 UTC (8 years, 5 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 273415 byte(s)
Diff to previous 15824
- Small fix to make sure the option "cont0" is always drawn with filled
  contours (as said in the help). Without this fix the following lines
  produced hollow contours:

  root [0] gROOT->ForceStyle()
  root [1] gStyle->SetFillStyle(1001)
  root [2] gStyle->SetHistFillStyle(0)
  root [3] hpxpy->Draw("cont0")

Revision 15824 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 19 15:15:41 2006 UTC (8 years, 6 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 273388 byte(s)
Diff to previous 15214
- New option "X0": When used with one of the "E" option, it suppress the error
  bar along X as gStyle->SetErrorX(0) would do.

Revision 15214 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 29 13:28:58 2006 UTC (8 years, 7 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 272661 byte(s)
Diff to previous 15039
- With the "TEXT" option, histograms having the same bin contents for all bins
  were not plot correctly.

Revision 15039 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 14 09:53:04 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 272663 byte(s)
Diff to previous 14978
Implement THistPainter::PaintStat3
The stats and fit box is now drawn like for TH1 and TH2.
Note that a clean draw of the under/overflows still need to be implemented.

Revision 14978 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 9 16:53:44 2006 UTC (8 years, 8 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 260146 byte(s)
Diff to previous 14944
- PaintColorLevels: The modifications made in Revision 1.198 to
  "take into account the option set by TStyle::SetHistMinimumZero"
  is not appropriate for PaintColorLevels. It screws up completly the
  correspondance between the color plot and the palette. The bad matching
  was even worst with histogram having negative contents. Like in the
  following example:
  {
   TH2F* histo = new TH2F( "histo", "histo", 3, 0.0, 3.0, 2, 0.0, 2.0 );
   Int_t dummy;
   dummy = histo->GetBin( 1, 1 );
   histo->SetBinContent( dummy, -100.0 );
   dummy = histo->GetBin( 2, 1 );
   histo->SetBinContent( dummy, -90.0 );
   dummy = histo->GetBin( 3, 1 );
   histo->SetBinContent( dummy, 12.0 );
   dummy = histo->GetBin( 1, 2 );
   histo->SetBinContent( dummy, 45.0 );
   dummy = histo->GetBin( 2, 2 );
   histo->SetBinContent( dummy, 75.0 );
   dummy = histo->GetBin( 3, 2 );
   histo->SetBinContent( dummy, 100.0 );
   gStyle->SetPalette( 1, 0 );
   histo->Draw("colz");
   histo->Draw("textsame");
  }

Revision 14944 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 8 09:37:12 2006 UTC (8 years, 8 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 260561 byte(s)
Diff to previous 14893
- ShowProjectionX/Y: Add support for nbins.

Revision 14893 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 2 16:46:03 2006 UTC (8 years, 8 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 259574 byte(s)
Diff to previous 14891
- In ShowProjectionX/Y the option used to pain the projection was not right.

Revision 14891 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 2 15:48:57 2006 UTC (8 years, 8 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 259610 byte(s)
Diff to previous 14825
- In ShowProjectionX/Y the name of the canvas in which the projection is
  shown was harcoded to "c_projection_1"/"2" whereas it should be:
  Form("c_projection_%d",fShowProjection).

Revision 14825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 25 08:59:19 2006 UTC (8 years, 9 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 259563 byte(s)
Diff to previous 14723
- coding conventions

Revision 14723 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 18 06:58:59 2006 UTC (8 years, 9 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 259080 byte(s)
Diff to previous 14695
From Tim Tran (trimtran@jlab.org)
Full implementation of all cases of projections in TH3::ShowProjection3

Revision 14695 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 13 14:00:43 2006 UTC (8 years, 9 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 225301 byte(s)
Diff to previous 14609
- Coding conventions

Revision 14609 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 10 06:55:14 2006 UTC (8 years, 9 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 225253 byte(s)
Diff to previous 14444
-In TVirtualHistPainter.h replace the previous functions:
     virtual void       SetShowProjectionX() = 0;
     virtual void       SetShowProjectionY() = 0;
  by one single function working for TH2 and TH3
    virtual void       SetShowProjection(const char *option) = 0;

-In THistPainter add the following functions:
    virtual void       SetShowProjection(const char *option);
    virtual void       ShowProjectionX(Int_t px, Int_t py);
    virtual void       ShowProjectionY(Int_t px, Int_t py);
    virtual void       ShowProjection3(Int_t px, Int_t py);

-In THistPainter.cxx implement the new function
    void THistPainter::ShowProjection3(Int_t px, Int_t py)
        // Show projection (specified by fShowProjection) of a TH3
        // The drawing option for the projection is in fShowOption.

-In TH3, add the new function:
    void TH3::SetShowProjection(const char *option)
      // When the mouse is moved in a pad containing a 3-d view of this histogram
      // a second canvas shows a projection type given as option.
      // To stop the generation of the projections, delete the canvas
      // containing the projection.
      // option may contain a combination of the characters x,y,z,e
      // option = "x" return the x projection into a TH1D histogram
      // option = "y" return the y projection into a TH1D histogram
      // option = "z" return the z projection into a TH1D histogram
      // option = "xy" return the x versus y projection into a TH2D histogram
      // option = "yx" return the y versus x projection into a TH2D histogram
      // option = "xz" return the x versus z projection into a TH2D histogram
      // option = "zx" return the z versus x projection into a TH2D histogram
      // option = "yz" return the y versus z projection into a TH2D histogram
      // option = "zy" return the z versus y projection into a TH2D histogram
      // option can also include the drawing option for the projection, eg to draw
      // the xy projection using the draw option "box" do
      //   myhist.SetShowProjection("xy box");
      // This function is typically called from the context menu.

 Note that this function is only partially implemented. It works only for the option "xy".
 It is included in CVS as a framework for additional developments. see
       http://root.cern.ch/phpBB2/viewtopic.php?t=3289

Revision 14444 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 28 15:50:10 2006 UTC (8 years, 9 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 221720 byte(s)
Diff to previous 14376
- coding conventions

Revision 14376 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 22 16:27:08 2006 UTC (8 years, 10 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 221853 byte(s)
Diff to previous 14361
Speed improvements in THistPainter::ShowProjectionX,Y

Revision 14361 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 21 18:11:33 2006 UTC (8 years, 10 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 221911 byte(s)
Diff to previous 14357
Reimplement the new functions in THistPainter such that
the dependency on TCanvas is removed.
With this change teh new functions work also on Windows

Revision 14357 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 21 15:40:56 2006 UTC (8 years, 10 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 221606 byte(s)
Diff to previous 14238
Add two new functions in TH2:
These new functions can be selected via the TH2 context menu.
They are a full implementation of the tutorial DynamicSlices.C

void TH2::SetShowProjectionX()
   // When the mouse is moved in a pad containing a 2-d view of this histogram
   // a second canvas shows the projection along X corresponding to the
   // mouse position along Y.
   // To stop the generation of the projections, delete the canvas
   // containing the projection.

void TH2::SetShowProjectionY()
   // When the mouse is moved in a pad containing a 2-d view of this histogram
   // a second canvas shows the projection along Y corresponding to the
   // mouse position along X.
   // To stop the generation of the projections, delete the canvas
   // containing the projection.

Revision 14238 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 13 10:57:07 2006 UTC (8 years, 10 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 218020 byte(s)
Diff to previous 14181
Add an optional argument to TH1::GetPainter.
In THistPainter::MakeChopt strip off option "GL"

Revision 14181 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 6 13:13:47 2006 UTC (8 years, 10 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 217951 byte(s)
Diff to previous 14038
- DistancetoPrimitive finds the x and y axis in case of options "x+" or "y+".

Revision 14038 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 13 09:52:33 2006 UTC (8 years, 11 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 217116 byte(s)
Diff to previous 14005
- New options X+ and Y+ to paint the X axis on top of the plot
 (default is bottom) and the Y axis on the right of the plot
 (Default is left).

Revision 14005 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 8 11:01:27 2006 UTC (8 years, 11 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 215628 byte(s)
Diff to previous 13990
- Option FB and BB were not recognize with option ISO

Revision 13990 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Feb 5 17:51:47 2006 UTC (8 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 215414 byte(s)
Diff to previous 13972
In THistPainter::Paint, add a comment for option "text"

Revision 13972 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 1 16:00:11 2006 UTC (8 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 215371 byte(s)
Diff to previous 13956
Improve documentation for the "HIST" option

Revision 13956 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 31 10:22:26 2006 UTC (8 years, 11 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 215231 byte(s)
Diff to previous 13842
- New TStyle attribute: HistTopMargin. It defines the margin value between
  the top of the histogram and the pad borber. It can be "set" and "get" with
  SetHistTopMargin() and GetHistTopMargin(). The default value is 0.05.

Revision 13842 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 17 14:59:12 2006 UTC (9 years ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 215102 byte(s)
Diff to previous 13802
From Lorenzo:
Fix in THistpainter::PaintStat2. the NDF in the stats box was not always correct
for 2-d functions.

Revision 13802 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 9 10:35:12 2006 UTC (9 years ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 215131 byte(s)
Diff to previous 13733
- The statistics parameters names can now be changed thanks to settings
  in the file $ROOTSYS/etc/system.rootrc. The default values are the
  following:

  Hist.Stats.Entries    Entries
  Hist.Stats.Mean       Mean
  Hist.Stats.MeanX      Mean x
  Hist.Stats.MeanY      Mean y
  Hist.Stats.RMS        RMS
  Hist.Stats.RMSX       RMS x
  Hist.Stats.RMSY       RMS y
  Hist.Stats.Underflow  Underflow
  Hist.Stats.Overflow   Overflow
  Hist.Stats.Integral   Integral
  Hist.Stats.Skewness   Skewness
  Hist.Stats.SkewnessX  Skewness x
  Hist.Stats.SkewnessY  Skewness y
  Hist.Stats.Kurtosis   Kurtosis
  Hist.Stats.KurtosisX  Kurtosis x
  Hist.Stats.KurtosisY  Kurtosis y

Revision 13733 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 19 14:08:29 2005 UTC (9 years, 1 month ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 212853 byte(s)
Diff to previous 13531
- PaintErrors: Option E1 painted vertical edge bars for empty bins.

Revision 13531 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 7 17:19:49 2005 UTC (9 years, 1 month ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 212839 byte(s)
Diff to previous 13503
- Since the axis for the CONT4 option are drawn using PaintAxis, it is
  now possible to use gPad->RedrawAxis() on a 'cont4 plot' (It was not
  possible before). This new possibility is now taken into account in
  PaintAxis. The following macro illustrate the problem:

  {
     TH2F *h = new TH2F("h","test",40,-2,2,40,-2,2);
     TRandom r;
     for (Int_t i=0;i<10000;i++) {
        h->Fill(r.Gaus(0,1),r.Gaus(0,0.6));
     }
     h->Draw("cont4");
     c1->RedrawAxis();
  }

Revision 13503 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 6 14:35:41 2005 UTC (9 years, 1 month ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 212576 byte(s)
Diff to previous 13485
- Improve help for POL, CYL, SPH and PSR options.

Revision 13485 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 4 10:51:27 2005 UTC (9 years, 1 month ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 212212 byte(s)
Diff to previous 13395
Replace all references to Axis_t and Stat_t by Double_t in all histogram classes.

Following several recent requests, implement new functions
to search the bin with a specified content.

Double_t TH1::GetBinWithContent(Double_t c, Int_t &binx, Int_t firstx, Int_t lastx,Double_t maxdiff) const
{
   // compute first binx in the range [firstx,lastx] for which
   // diff = abs(bin_content-c) <= maxdiff
   // In case several bins in the specified range with diff=0 are found
   // the first bin found is returned in binx.
   // In case several bins in the specified range satisfy diff <=maxdiff
   // the bin with the smallest difference is returned in binx.
   // In all cases the function returns the smallest difference.
   //
   // NOTE1: if firstx <= 0, firstx is set to bin 1
   //        if (lastx < firstx then firstx is set to the number of bins
   //        ie if firstx=0 and lastx=0 (default) the search is on all bins.
   // NOTE2: if maxdiff=0 (default), the first bin with content=c is returned.

Double_t TH2::GetBinWithContent2(Double_t c, Int_t &binx, Int_t &biny, Int_t firstx, Int_t lastx, Int_t firsty, Int_t lasty, Double_t maxdiff) const
{
   // compute first cell (binx,biny) in the range [firstx,lastx](firsty,lasty] for which
   // diff = abs(cell_content-c) <= maxdiff
   // In case several cells in the specified range with diff=0 are found
   // the first cell found is returned in binx,biny.
   // In case several cells in the specified range satisfy diff <=maxdiff
   // the cell with the smallest difference is returned in binx,biny.
   // In all cases the function returns the smallest difference.
   //
   // NOTE1: if firstx <= 0, firstx is set to bin 1
   //        if (lastx < firstx then firstx is set to the number of bins in X
   //        ie if firstx=0 and lastx=0 (default) the search is on all bins in X.
   //        if firsty <= 0, firsty is set to bin 1
   //        if (lasty < firsty then firsty is set to the number of bins in Y
   //        ie if firsty=0 and lasty=0 (default) the search is on all bins in Y.
   // NOTE2: if maxdiff=0 (default), the first cell with content=c is returned.

Double_t TH3::GetBinWithContent3(Double_t c, Int_t &binx, Int_t &biny, Int_t &binz, Int_t firstx, Int_t lastx, Int_t firsty, Int_t lasty, Int_t firstz, Int_t lastz, Double_t maxdiff) const
{
   // compute first cell (binx,biny,binz) in the range [firstx,lastx](firsty,lasty][firstz,lastz] for which
   // diff = abs(cell_content-c) <= maxdiff
   // In case several cells in the specified range with diff=0 are found
   // the first cell found is returned in binx,biny,binz.
   // In case several cells in the specified range satisfy diff <=maxdiff
   // the cell with the smallest difference is returned in binx,biny,binz.
   // In all cases the function returns the smallest difference.
   //
   // NOTE1: if firstx <= 0, firstx is set to bin 1
   //        if (lastx < firstx then firstx is set to the number of bins in X
   //        ie if firstx=0 and lastx=0 (default) the search is on all bins in X.
   //        if firsty <= 0, firsty is set to bin 1
   //        if (lasty < firsty then firsty is set to the number of bins in Y
   //        ie if firsty=0 and lasty=0 (default) the search is on all bins in Y.
   //        if firstz <= 0, firstz is set to bin 1
   //        if (lastz < firstz then firstz is set to the number of bins in Z
   //        ie if firstz=0 and lastz=0 (default) the search is on all bins in Z.
   // NOTE2: if maxdiff=0 (default), the first cell with content=c is returned.

Revision 13395 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 29 14:33:00 2005 UTC (9 years, 1 month ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 212199 byte(s)
Diff to previous 13392
Fix a compiler warning about possibly uninitialized variables

Revision 13392 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 29 12:52:03 2005 UTC (9 years, 1 month ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 212195 byte(s)
Diff to previous 13320
- In case of 1D histograms plotted as a LEGO or a SURFACE, one had to change
  the option LogZ to set the logarithmic scale on the Y axis. Setting the
  option LogY produced an error. This is now fixed.

- More changes to be compliant with the coding conventions (comments format).

Revision 13320 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 23 08:50:42 2005 UTC (9 years, 2 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 213407 byte(s)
Diff to previous 13249
- PaintErrors:
  In case of log scale on a Y axis with a positive maximum value and a minimum
  value less or equal to 0, a new minimum is computed as a percentage of the
  maximum. This rule is fine but may brings back visible some bins which are
  out of range in linear mode. A new test has been added to prevent that. This
  problem is visible since revision 1.197. Previously the test modified in that
  revision was able to filter such wrong cases.

Revision 13249 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 16 11:02:16 2005 UTC (9 years, 2 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 213352 byte(s)
Diff to previous 13242
- PaintAxis:
  The "long standing problem" mentioned in revisions 1.24 and 1.223 has been
  identified. When an histogram is drawn with error-bars the values stored in
  Hparam and those returned by gPad->GetUymin/max are different (because the
  error-bars need more room to be drawn). The correct values are those returned
  by gPad->GetUymin/max except in case of CONT4 (contours drawn with
  TPainter3dAlgorithm) where Hparam must be used. The "long standing problem"
  was visible with the following lines:

  TH1D *h1 =new TH1D("h1","h1",100,-10,10);
  h1->FillRandom("gaus");
  h1->Draw("e");
  gPad->RedrawAxis();

  In that case the axis drawn by RedrawAxis are shifted compare to the original
  ones.

Revision 13242 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 15 10:39:51 2005 UTC (9 years, 2 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 212692 byte(s)
Diff to previous 13229
In THistPainter::PaintInit change the minimum for an empty histogram
from -1 to 0

Revision 13229 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 14 16:34:17 2005 UTC (9 years, 2 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 212692 byte(s)
Diff to previous 13215
- As indicated in the help of THistPainter::Paint, the option "A" used on
  histograms means "do NOT DRAW the axis". This option worked properly on lego
  and surfaces plots but not on 1D histograms and on "flat" 2D plots. Now it
  is hopefully working in all cases.
  A first attempt to make it work has been done in revision 1.226 of
  THistPainter. But it was tagged as "catastrophic" in revision 1.228 because
  it was not anymore possible to draw the TGraph axis.
  Indeed, for historical reasons, the option "A" applied on TGraph means
  exactly the opposite: "start a new plot and DRAW the axis".
  So the needed modifications were a bit more complex than the ones done in
  revision 1.226 of THistPainter. Actually some mods are needed in:

  * THistPainter::PaintAxis: return if Hoption.Axis == -1 (option "A").
    That was the "catastrophic" change of revision 1.226.
  * THistPainter::PaintTable: Hoption.Axis<=0 replaces !Hoption.Axis.
  * TGraph::PaintGraph: fHistogram->Paint(" ") replaces fHistogram->Paint("a").
  * TPad::DrawFrame: hframe->Draw(" ") replaces hframe->Draw("a").

Revision 13215 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 12 11:42:10 2005 UTC (9 years, 2 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 212693 byte(s)
Diff to previous 13179
Disable a recent catastrophic change from Olivier.
TGraph axis were not draw anymore.

Revision 13179 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 9 17:37:42 2005 UTC (9 years, 2 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 212691 byte(s)
Diff to previous 13178
- a comment was missing

Revision 13178 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 9 17:24:52 2005 UTC (9 years, 2 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 212690 byte(s)
Diff to previous 12994
- Option "A" (to suppress the axis drawing on histogram plots) is now working
  on 2D plots also. Hoption.Axis can have the following value:
  Hoption.Axis =  0 ; User option = " "    ; both axis and histogram are drawn.
  Hoption.Axis = -1 ; User option = "A"    ; axis are not drawn.
  Hoption.Axis =  1 ; User option = "AXIS" ; only axis are drawn (not the grid).
  Hoption.Axis =  2 ; User option = "AXIG" ; only the grid is drawn.

- Some clean up to make the rule checker happy.

Revision 12994 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 20 21:07:52 2005 UTC (9 years, 3 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 213031 byte(s)
Diff to previous 12954
Protect THistPainter::PaintBoxes against a division by 0
in case of code like
hh = new TH2F("hh","hh",100,0,1,100,0,1);

hh->Fill(200,200); // out of range value, so that
GetSumOfWeights()==0

hh->Draw("box");

(thanks  Ruben Shahoyan for reporting the problem)

Revision 12954 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 13 16:37:20 2005 UTC (9 years, 3 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 212997 byte(s)
Diff to previous 12945
- Since the axis are painted with PaintAxis() for the contour option CONT4
  (in PaintContour), there is no need to have the funny values 0.0001 and
  89.99 for the Phi and Theta angles (set with SetPhi() and SetTheta()). They
  can be replaced by the exact value 0. and 90. This weird angles values were
  needed when the axis were painted with TPaint3DAlgorithms. The exact values
  produced wrong tick marks and labels placements.

Revision 12945 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 13 08:10:27 2005 UTC (9 years, 3 months ago) by couet
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 213002 byte(s)
Diff to previous 12622
- The contour option CONT4, is done by painting a colored surface seen
  from top. With this technique the axis are painted by TPainter3dAlgorithms
  as for normal lego or surface's axis. Therefore they did not behave like
  the normal "2D axis" in particular:

  * Tick marks were on the wrong axis' side.
  * It was not possible to draw axis' grid.
  * SetTickx() and SetTicky() had no effect.

  This patch fixes this problems. The axis for CONT4 are now drawn with
  THistPainter::PaintAxis(), not anymore using TPainter3dAlgorithms. To
  achieve that, it was necessary to modify PaintAxis(): the axis label
  (variables "umin" and "umax") are now computed from Hparam. This
  modification is a partial "roll back" compare to revision 1.24. This
  revision said:

  "Correct THistPainter::PaintAxis to use axmin,axmax,aymin,aymax instead
  of HParam.xmin, etc. This fixes a long standing problem when the
  function TPad::RedrawAxis is called."

  This comment is a bit useless because it doesn't tell what the "long
  standing problem" was. Anyway, none of the known examples using
  RedrawAxis didn't show a wrong behavior with the modified PaintAxis.
  This is not surprising because "umin" and "umax" are the axis labels and
  they do not act on the axis position.

Revision 12622 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Sep 4 10:38:41 2005 UTC (9 years, 4 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 212914 byte(s)
Diff to previous 12550
Fix coding conventions violations.

Revision 12550 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 29 12:52:22 2005 UTC (9 years, 4 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 212326 byte(s)
Diff to previous 12544
Changes to make the rulechecker happy in directory histpainter.

Revision 12544 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 26 16:26:59 2005 UTC (9 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 212324 byte(s)
Diff to previous 12507
From Olivier:
- Fix in PaintErrors: The polygon drawn in case of option E3 (and E4) was
  wrongly clipped when a Y value was greater than the Y axis maximum.

Revision 12507 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 18 13:49:41 2005 UTC (9 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 212336 byte(s)
Diff to previous 12353
Fix a problem in THistPainter::PaintBar and THistPainter::PaintBarH
in case of log scales.

Revision 12353 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 20 13:07:22 2005 UTC (9 years, 6 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 212676 byte(s)
Diff to previous 12066
From Olivier:
- Fixes in 2D errors painting:
  - Hoption.Error is now set by default to 2 only for 1D histograms
  - In Paint2DErrors: fH->GetBinCenter was used to get Y position. That's
    obviously wrong. Now fYaxis->GetBinCenter() is used.

Revision 12066 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 16 17:53:57 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 212641 byte(s)
Diff to previous 12061
From Olivier:
- Skewness and kurtosis can now be displayed in TPaveStats (1D and 2D
  histos).

- Errors can be displayed for 2D histograms statistics.

Revision 12061 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 15 15:12:53 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 207140 byte(s)
Diff to previous 11767
From Olivier:
- Help improvement in PaintStat()

Revision 11767 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 11 11:31:32 2005 UTC (9 years, 8 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 207030 byte(s)
Diff to previous 11667
From Olivier:
- The type of information printed in the histogram statistics box can be
  selected via gStyle->SetOptStat(mode).
  The parameter mode can be = iourmen  (default = 0001111)
  [...]
  m = 1;  mean value printed
  m = 2;  mean and mean error values printed
  r = 1;  rms printed
  r = 2;  rms and rms error printed
  [...]

  "m" and "r" can now be equal to 2, which mean "print the errors".

Revision 11667 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 25 13:59:21 2005 UTC (9 years, 9 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 206363 byte(s)
Diff to previous 11653
From Olivier:
 Help improvement: in an expression like [gc1,gc2], "," means logical AND

Revision 11653 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 22 06:29:49 2005 UTC (9 years, 9 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 206339 byte(s)
Diff to previous 11642
Fix a problem in THistPainter::PaintBar in case of a log scale in Y
and the bin content is null.

Revision 11642 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 20 19:29:00 2005 UTC (9 years, 9 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 206279 byte(s)
Diff to previous 11641
Implement better solution than in previous patch that keeps
case sensitivity for TCutG names.

Revision 11641 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 20 17:51:27 2005 UTC (9 years, 9 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 206350 byte(s)
Diff to previous 11444
In THistPainter::MakeCuts TCutGs are now case insensitive.
This solves a problem when a TCutG is created with a name including
capital letters (default is CUTG !)

Revision 11444 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 29 17:15:58 2005 UTC (9 years, 9 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 206072 byte(s)
Diff to previous 11377
From Olivier:
- The revision 1.153 in THistPainter::PaintTitle (to take into account the
  case of multi-lines title), produced a side effect: histogram titles
  "K^{+}" and "K^{-}" had not the same size. This patch fixes the problem.

Revision 11377 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 19 17:09:38 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 205987 byte(s)
Diff to previous 11278
Update a comment indicating how to access the TPaveStats

Revision 11278 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 10 13:46:10 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 206009 byte(s)
Diff to previous 11271
From Olivier:
- Option BB and FB was not correctly handled for TF3. This causes a crash
  in TF3 drawing.

- TF3::SavePrimitives implemented

Revision 11271 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 9 17:28:09 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 205795 byte(s)
Diff to previous 11176
From Olivier:
- In THistPainter::PaintColorLevels the colored boxes might be drawn
  outside gPad if their upper limits were smaller than the gPad lower
  limits or if their lower limits were bigger than the gPad higher limits.
  The following example shows the problem:

  void colzsame ()
  {
     TCanvas * c0 = new TCanvas("c0","c0",600,600);
     TH2D * base  = new TH2D("base","base",10,-1,1,10,0.,1.5);
     base->Draw();
     TH2D * h2d = new TH2D("h2d","h2d",10,0.,1.,10,0.,1.);
     gStyle->SetPalette(1);
     for (int i=0; i<10; i++) {
        for (int j=0; j<10; j++) {
           h2d->SetBinContent(i+1,j+1,(i+1)*10.+j+1);
        }
     }
     h2d->Draw("samecolz");
     base->SetAxisRange(0.5,0.7,"X");
     base->SetAxisRange(0.5,0.7,"Y");
  }

Revision 11176 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 24 11:29:37 2005 UTC (9 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 205605 byte(s)
Diff to previous 11064
From Olivier:
- In case of gStyle->SetOptStat(0), statistic boxes containing fits
  parameters were not correctly drawn. The following macro showed the
  problem:

      gStyle->SetOptFit(1); gStyle->SetOptStat(0);
      TH1D* h=new TH1D("asdf","asdf",100,0,100);
      h->Fill(50,430); h->Fit("gaus");

Revision 11064 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 8 16:35:21 2005 UTC (9 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 205595 byte(s)
Diff to previous 11063
Fix a compiler warning about possible uninitialized variable

Revision 11063 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 8 16:33:38 2005 UTC (9 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 205591 byte(s)
Diff to previous 10863
From Olivier:
- Option BOX Improvements: a box is drawn for each cell with surface
  proportional to the content's absolute value. A negative content is
  marked with a X.
- New option BOX1: a button is drawn for each cell with surface
  proportional to content's absolute value. A sunken button is drawn for
  negative values a raised one for positive.

Revision 10863 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 4 10:25:26 2005 UTC (10 years ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 202142 byte(s)
Diff to previous 10690
From Olivier:
- New function TStyle::SetTitleAlign() (and corresponding Get) to define
  the histogram title alignment with the same convention as the text
  alignment (a 2 digits integer): hv

  where "h" is the horizontal alignment and "v" is the vertical alignment.
  "h" can get the values 1 2 3 for left, center, and right
  "v" can get the values 1 2 3 for bottom, middle and top

  for instance the default alignment is: 13 (left top)

  Example:
             gStyle->SetTitleAlign(31)
             hpx->Draw()

Revision 10690 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 6 16:44:08 2004 UTC (10 years, 1 month ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 201527 byte(s)
Diff to previous 10677
From Olivier & Toni Ampl
- Option POL can now be combined with option COL.
  (implemented by Anton Empl)
This new option will be upgraded in the coming days.

Revision 10677 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 3 15:18:32 2004 UTC (10 years, 1 month ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 201106 byte(s)
Diff to previous 10622
From maxim Nikulin:
fix when painting the stats box with precision 3 fonts (in pixels)

Revision 10622 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 25 12:12:39 2004 UTC (10 years, 2 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 201020 byte(s)
Diff to previous 10610
From Olivier:
- Final Adjustment in PaintContour: In case of the negative contours only,
  the contours order was not correct.

Revision 10610 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 24 09:41:56 2004 UTC (10 years, 2 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 201025 byte(s)
Diff to previous 10585
From Olivier:
- In PaintContour: With option LIST, in case of positive and negative
  contours, the 1st positive contour was always returned at the beginning
  of the list. With this fix, all the negative contours are returned first
  then all the positive ones.

Revision 10585 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 22 15:55:57 2004 UTC (10 years, 2 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 201025 byte(s)
Diff to previous 10496
take into account the option set by TStyle::SetHistMinimumZero

Revision 10496 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Nov 7 09:16:27 2004 UTC (10 years, 2 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 199837 byte(s)
Diff to previous 10463
In THistPainter::PaintErrors always draw the horizontal error bar
if the bin content is not null and the error along y is null.
This solves a problem when drawing profile histograms with bins having
only one entry.

Revision 10463 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 3 17:32:14 2004 UTC (10 years, 2 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 199826 byte(s)
Diff to previous 10416
From Olivier:
- With CONT1 option, the contours were not properly sorted if they were
  all negative. This is fixed by initializing the variable "first" to
  "ncontour-1" instead of "0".

Revision 10416 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 27 17:46:56 2004 UTC (10 years, 2 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 199817 byte(s)
Diff to previous 10253
From Olivier:
- In PaintContour, the first contour was missing when the data set was
  painted with option CONT. This problem was introduced by the fix done by
  Rene in revision 1.148. BUT, without that fix (1.148), the macro
  FirstContour.C doesn't work. This new patch fixes both problems
  (missing contour and FirstContour.C not working).

Revision 10253 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 8 05:29:40 2004 UTC (10 years, 3 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 199754 byte(s)
Diff to previous 10207
Remove an empty line in the doc of THistPainter::Paint preventing the correct
generation of the html page.

Revision 10207 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 5 10:28:24 2004 UTC (10 years, 3 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 199752 byte(s)
Diff to previous 10192
An algorithm sent by Ernst-Jan Buis for plotting contours using
the special projections for viewing skymaps or exposure maps has been
introduced in THistPainter and associated classes.

In Hoption.h a new member HOption.Proj has been introduced
   int Proj;        //  = 1 to get an Aitoff projection, usefull for skymaps or exposure maps..
                    //  = 2 to get a Mercator ptojection
                    //  = 3 to get a Sinusoidal ptojection
                    //  = 4 to get a Parabolic ptojection

in THistpainter::Paint, the following options are supported:
//    "AITOFF"     : Draw a contour via an AITOFF projection
//    "MERCATOR"   : Draw a contour via an Mercator projection
//    "SINUSOIDAL" : Draw a contour via an Sinusoidal projection
//    "PARABOLIC"  : Draw a contour via an Parabolic projection

The function THistPainter::RecalculateRange has been modified to take into account these new options
as well as the class TPainter3dAlgorithms.
The picture produced by the new tutorial earth.C is visible at
 http://root.cern.ch/root/htmldoc/THistPainter.html#THistPainter:PaintContour

Revision 10192 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 1 06:28:13 2004 UTC (10 years, 3 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 191169 byte(s)
Diff to previous 10185
From Olivier:
- In MakeChopt the number of spaces used in strncpy to clean the variable
  "chopt" was wrong in two places (for TRI and COLZ). This prevented to
  put any extra option after COLZ (like TEXT for instance).

Revision 10185 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 30 07:56:51 2004 UTC (10 years, 3 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 191170 byte(s)
Diff to previous 10031
From Olivier
- Log scales management along X and Y axis was wrong in Paint2DErrors.

Revision 10031 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 14 07:33:43 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 191215 byte(s)
Diff to previous 9999
In THistPainter::Paint add a reference to the new tutorial transpad.C

Revision 9999 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 13 10:03:09 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 191149 byte(s)
Diff to previous 9885
Upgrade the histogram buffer algorithm such that it can be used in a
coming version of the rebinner of the TH1,2 editors.
When the histogram buffer is active (TH1::SetBuffer has been called),
the buffer is kept alive as long as the number of entries can
be accomodated by the buffer.
When calling the Draw/Paint functions, the histogram is reset and
refilled from the buffer.
The buffer is also preserved by the I/O operations.
The calling sequence of TH1::BufferEmpty has been modified to support
3 cases instead of 2.

Int_t TH1::BufferEmpty(Int_t action)
// action = -1 histogram is reset and refilled from the buffer (called by THistPainter::Paint)
// action =  0 histogram is filled from the buffer
// action =  1 histogram is filled and buffer is deleted
//             The buffer is automatically deleted when the number of entries
//             in the buffer is greater than the number of entries in the histogram

Revision 9885 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 3 10:51:36 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 191147 byte(s)
Diff to previous 9879
From Olivier:
- TH2::ProjectionX, TH2::ProjectionY, TH2::ProfileX and TH2::ProfileY can
  now be performed according to graphical cuts.

  Using a TCutG object, it is possible to select a sub-range of a 2-D histogram.
  One must create a graphical cut (mouse or C++) and specify the name
  of the cut between [] in the option.
  For example, with a TCutG named "cutg", one can call:
     myhist->ProjectionX(" ",firstybin,lastybin,"[cutg]");
  To invert the cut, it is enough to put a "-" in front of its name:
     myhist->ProjectionX(" ",firstybin,lastybin,"[-cutg]");
  It is possible to apply several cuts:
     myhist->ProjectionX(" ",firstybin,lastybin,[cutg1,cutg2]");

Example:

{
   TCanvas *c = new TCanvas("c","example",0,0,700,600);
   c->Divide(1,2);

   TCutG *gcut = new TCutG("gcut",8);
   gcut->SetPoint(0,-0.646552,0.932203);
   gcut->SetPoint(1,-1.26437,0.105932);
   gcut->SetPoint(2,-0.574713,-1.10169);
   gcut->SetPoint(3,0.948276,-0.338983);
   gcut->SetPoint(4,1.07759,0.720339);
   gcut->SetPoint(5,-0.316092,-0.0847458);
   gcut->SetPoint(6,-0.45977,0.402542);
   gcut->SetPoint(7,-0.646552,0.932203);

   TFile f("hsimple.root")
   TH2F *hpxpy = (TH2F*)f.Get("hpxpy");
   TH1D *hppx = hpxpy->ProjectionX("",1,40,"[gcut]");

   c->cd(1);
   hpxpy->SetFillColor(kBlue);
   hpxpy->DrawCopy("box");
   hpxpy->SetFillColor(kRed);
   hpxpy->Draw("same box [gcut]");

   c->cd(2);
   hppx->Draw();
}

Revision 9879 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 3 06:08:08 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 191146 byte(s)
Diff to previous 9875
In THistPainter::PaintInit and THistPainter::TableInit do not print the error message
   log scale is requested but maximum is less or equal 0
when the option "same" is specified

Revision 9875 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 2 13:08:13 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 191070 byte(s)
Diff to previous 9874
From Olivier:
- Help update in THistPainter::Paint (graphical cuts)

Revision 9874 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 2 12:40:30 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 190872 byte(s)
Diff to previous 9793
Fix a problem in THistPainter::DistancetoPrimitive when looping
on the list of functions. A side-effect of the previous change in this function
was to exclude the TPaveStats from DistancetoPrimitive.

Revision 9793 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 20 08:13:45 2004 UTC (10 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 190746 byte(s)
Diff to previous 9783
In THistPainter::DistancetoPrimitive when looping on list of associated functions
TF1::DistancetoPrimitive is called with -px instead of px to instruct
TF1::DistancetoPrimitive to not look in the histogram axis.

In case of a histogram with a negative minimum, do not select
the histogram when crossing the 0 line.

Revision 9783 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 19 06:47:05 2004 UTC (10 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 190633 byte(s)
Diff to previous 9610
Modify a comment in THistPainter::Paint.
The option "CONT5" is only for TGraph2D

Revision 9610 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 28 09:41:13 2004 UTC (10 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 190617 byte(s)
Diff to previous 9553
Take into account the normalization factor when painting with options "lego", "surf"

Revision 9553 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 20 07:23:34 2004 UTC (10 years, 6 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 190603 byte(s)
Diff to previous 9547
The selected pad and selected object are now passed as arguments
when creating the DrawPanel and Fitpanel, instead of using
the global pointers obtained via gROOt->GetSelectedPad.
This may fix some problems seen with the Qt version.

Revision 9547 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 19 12:36:32 2004 UTC (10 years, 6 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 190955 byte(s)
Diff to previous 9440
From Olivier:
Log scales are taken into account with option TEXT.

Revision 9440 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 8 12:18:50 2004 UTC (10 years, 6 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 190491 byte(s)
Diff to previous 9334
In TStyle::SetOptFit implement a variant of an existing option
// The type of information about fit parameters printed in the histogram
// statistics box can be selected via gStyle->SetOptFit(mode).
//  The parameter mode can be = pcev  (default = 0111)
//    v = 1;  print name/values of parameters
//    e = 1;  print errors (if e=1, v must be 1)
//    c = 1;  print Chisquare/Number of degrees of freedom
//    p = 1;  print Probability
//    When "v"=1 is specified, only the non-fixed parameters are shown.
//    When "v"=2 all parameters are shown.

In THistPainter::PaintStat, take into account this option.
By default fixed parameters are not shown.

Revision 9334 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 28 12:14:57 2004 UTC (10 years, 6 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 190100 byte(s)
Diff to previous 9305
In THistPainter::PaintInit, optimize the computation of the Y range

Revision 9305 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 24 16:57:13 2004 UTC (10 years, 7 months ago) by rdm
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 190028 byte(s)
Diff to previous 9126
From Matt LeBourgeois:
fixes the problem with the drawing of empty bins. The fix was easy because
if there is a log scale then there can't be any negative values for z
therefore the logic statement was changed to if z==0 and
(zmin>0 or Hoption.logz) then continue.

Revision 9126 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 4 16:28:08 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 190010 byte(s)
Diff to previous 9087
In THistPainter::PaintContour, double the size of the allocated buffers
Instead of kMAXCONTOUR, use 2*kMAXCONTOUR.

Revision 9087 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 2 11:00:23 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 190000 byte(s)
Diff to previous 8914
In THistPainter::PaintInit take into account the case where the specified
normalisation factor is positive and the integral negative, or vice-versa.

Revision 8914 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 13 10:09:10 2004 UTC (10 years, 8 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 189784 byte(s)
Diff to previous 8897
From Olivier:
- When a TH2 is painted with the option "BOX SAME" the minimum and maximum
  values along the Z axis are taken from the first TH2 in the Pad.

Example:

void boxsame() {
   gROOT->Reset();
   c = new TCanvas("c","Example of BOX plots with option SAME",200,10,700,500);
   TH2F *h1 = new TH2F("h1","h1",40,-3,3,40,-3,3);
   TH2F *h2 = new TH2F("h2","h2",40,-3,3,40,-3,3);
   TH2F *h3 = new TH2F("h3","h3",40,-3,3,40,-3,3);
   TH2F *h4 = new TH2F("h4","h4",40,-3,3,40,-3,3);
   for (Int_t i=0;i<100000;i++) {
      double x,y;
      gRandom->Rannor(x,y);
      if(x>0 && y>0) h1->Fill(x,y,4);
      if(x<0 && y<0) h2->Fill(x,y,3);
      if(x>0 && y<0) h3->Fill(x,y,-2);
      if(x<0 && y>0) h4->Fill(x,y,1);
   }
   h1->SetLineColor(1);
   h2->SetLineColor(2);
   h3->SetLineColor(3);
   h4->SetLineColor(4);
   h1->Draw("box");
   h2->Draw("box same");
   h3->Draw("box same");
   h4->Draw("box same");
}

Revision 8897 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 12 12:36:55 2004 UTC (10 years, 8 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 188794 byte(s)
Diff to previous 8593
In THistPainter::PaintInit, do not recompute the minimum scale if
the contents and errors are nearly equal

Revision 8593 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 16 09:08:25 2004 UTC (10 years, 9 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 188776 byte(s)
Diff to previous 8590
From Olivier;
- Useless line removed in MakeChopt

Revision 8590 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 15 16:41:23 2004 UTC (10 years, 9 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 188818 byte(s)
Diff to previous 8549
From Olivier:
- The option TEXT is now also valid for 1D histograms. The TEXT angle can
  be specified: TEXTnn where n in an angle in degrees (0<nn<90)

- Improvements in the option E management.

Revision 8549 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 6 21:36:47 2004 UTC (10 years, 9 months ago) by rdm
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 187514 byte(s)
Diff to previous 8508
From Olivier:
In PaintContour, the patch done in the revision 1.167 was not correct. It
produced the following side effect: SetContour() called with a single
integer had no effect. This new version is similar to the logic we have in
other Paint functions using contours.

Revision 8508 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 26 17:15:55 2004 UTC (10 years, 10 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 187480 byte(s)
Diff to previous 8498
From Olivier:
- First version of the option E (error bars) for 2D histograms. Ex:
      hpxpy->Draw("E");

Revision 8498 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 25 18:09:11 2004 UTC (10 years, 10 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 183045 byte(s)
Diff to previous 8487
From Olivier:
- Two improvements in PaintColorLevels:
  1) Because of rounding errors, it may happened that a cell's color was
     outside the palette even for a z value smaller than the maximum.
  2) The bins with zero content are not painted only if the minimum of the
     histogram isn't negative.

Revision 8487 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 23 18:05:57 2004 UTC (10 years, 10 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 182985 byte(s)
Diff to previous 8444
From Olivier:
- When the option logz was set on a contour plot (option CONT or CONT0
  only) on the linear plot from the Pad pull down menu, the plot
  disappeared.

Revision 8444 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 19 14:45:53 2004 UTC (10 years, 10 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 182946 byte(s)
Diff to previous 8434
From Olivier:
- If a contour is paint (with option SAME) on a 3d plot (surface, lego
  or triangles), the contour lines are painted in 3d too.
  Ex:

   h2->Draw("SURF4");
   h2->Draw("CONT1 SAME");

Revision 8434 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 18 21:35:36 2004 UTC (10 years, 10 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 182256 byte(s)
Diff to previous 8213
Add support for histograms with a normalisation factor (TH1::SetNormFactor
has been called) in THistPainter::DistancetoPrimitive and ExecuteEvent

Revision 8213 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 16 15:53:02 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 181978 byte(s)
Diff to previous 8208
Add support for graphical cuts in THistPainter::PaintContour.
h2.Draw("cont1 [mycut]") works OK now.

Revision 8208 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 16 08:47:11 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 181895 byte(s)
Diff to previous 8165
In case all bin errors are null, force option "hist" unless another option
is specified.

Revision 8165 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 9 14:21:03 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 181639 byte(s)
Diff to previous 8150
From Olivier:
THistPainter::PaintTriangles now takes care of option SAME.

Revision 8150 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Feb 7 21:19:40 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 181622 byte(s)
Diff to previous 8096
In THistPainter::PainStat add the drawing of Meany and RMSy
in case of TProfile.

Revision 8096 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 30 18:30:03 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 181182 byte(s)
Diff to previous 8048
From Olivier Couet:
- In TGraph2D::TGraph2D(TH2 *h2) only the bins having a contain between
  h2 minimum and h2 maximum are converted in points in the TGraph2D.
- Logz implemented for option CONT5
- Option Z implemented with TRI1 and TRI2

Revision 8048 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 27 13:28:23 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 181015 byte(s)
Diff to previous 7998
Cleanup of many files havind trailing CR/LF

Restrustruring of TGraph2D::GetContourList with the algorithm in histpainter (by Olivier)

Revision 7998 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 23 23:30:31 2004 UTC (11 years ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 180465 byte(s)
Diff to previous 7677
From Olivier:
TGraph2D is now split into 3 classes:

- TGraph2D (now in hist) to handle the basic graph 2d data
- TGraphDelaunay (in hist) to generate a Delaunay triangulation of a TGraph2D.
- TGraphPainter (in histpainter) to paint a TGraphDelaunay (used via
  THistPainter)
- New function GetContourList in TGraph2D
- New option CONT5: draws a TGraph2D as a contour (using Delaunay
  triangles).
- New TGraph2D constructor (from a TH2).

The class TSpectrum2 has been removed (still waiting for fixes from Miroslav)

NOTE: it is recommended to make distclean  make
or at least
 rm hist/src/G*  graph/src/G*

Revision 7677 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 1 07:16:00 2003 UTC (11 years, 1 month ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 179983 byte(s)
Diff to previous 7636
When drawing with the option "sameaxis", make sure that any "stats" box
is also redrawn to avoid the axis or grid drawn on top of the "stats" box.

Revision 7636 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 24 10:26:40 2003 UTC (11 years, 2 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 179968 byte(s)
Diff to previous 7608
In THistPainter::Paint reset fXbuf and fYbuf to 0 after deleting the two arrays.
It may happen that THistPainter is called recursively when connecting
to the signal "RangeAxisChanged"

Revision 7608 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 18 09:40:33 2003 UTC (11 years, 2 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 179943 byte(s)
Diff to previous 7589
Fix a bug in THistPainter::GetBestFormat. The function was returning by mistake
a TString craeted in teh stack.

Revision 7589 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 13 17:08:24 2003 UTC (11 years, 2 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 179955 byte(s)
Diff to previous 7509
From Olivier:

TGraph2D:
 - New method FindAllTriangles (it finds all the Delaunay's triangles).
 - PaintTriangles handles the paint option TRI, W, and P.
 - fNpoints is initialized on the ctors declaration line.
 - The triangles painting takes care of log options and of the min and
   max values.
 - PaintTriangles uses the new THistPainter's method PaintAxis3D to paint
   the 3D axis.

THistPainter:
 - Option "axis" works on 2D histograms.
 - New method PaintAxis3D to paint the 3D axis.

Revision 7509 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Nov 2 09:28:56 2003 UTC (11 years, 2 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 177343 byte(s)
Diff to previous 7389
In THistPainter::PaintTitle take into account the case where the title uses
more than one line (TLatex symbol #splitline used)

Revision 7389 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 1 14:14:45 2003 UTC (11 years, 3 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 177282 byte(s)
Diff to previous 7295
In THistPainter::PaintErrors do not show the horizonthal error bars
in case both the content and the error in Y are null

Revision 7295 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 18 10:46:55 2003 UTC (11 years, 4 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 177270 byte(s)
Diff to previous 7282
Fix two problems reported by Andrei Gaponenko:
 - must set bit kClipFrame in PaintContour. This is important when superimposing
   several histograms with contours in the same pad and then zooming interactively
   on the axes.

 - When drawing in log scale a histogram with errors and the histogram has
   a maximum close to 1 and a minimum of zero, the Y scale has been optimized.

Revision 7282 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 15 17:19:02 2003 UTC (11 years, 4 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 177058 byte(s)
Diff to previous 7045
From Olivier,

Add new static function
  THistpainter::GetBestFormat

to compute the best format to be used to print
the error of some parameter. This is currently used to display the
errors on the fit parameters.

Revision 7045 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 6 16:09:30 2003 UTC (11 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 175588 byte(s)
Diff to previous 7034
Modify THistPainter::PaintStat and PaintStat2 to not print
the statistics when gStyle->GetOptStat is null.

Revision 7034 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 5 10:25:30 2003 UTC (11 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 175568 byte(s)
Diff to previous 7020
Fix a problem in THistPainter::PaintContour (side-effect of a previous change by Olivier)
preventing to run correctly the tutorial FirstContour.C.
The first contour was not filled.

Revision 7020 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 30 18:00:30 2003 UTC (11 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 175566 byte(s)
Diff to previous 6969
Fix by Olivier for a problem reported by Otto Schaile

 " I am using  3.05/07,27 July 2003, (RH7.3)
  when zooming in x - y sometimes the upper bin row gets white"

Revision 6969 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 18 09:07:09 2003 UTC (11 years, 6 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 175506 byte(s)
Diff to previous 6901
Optimisation of the color scale computation when drawing with option "colz'
(from Olivier)

Revision 6901 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 12 12:00:46 2003 UTC (11 years, 6 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 175414 byte(s)
Diff to previous 6884
In THistPainter::PaintGrapHist do not set the bit kClipFrame
in the TGraph used for painting, unless option "same" is specified.
This improves substantially the drawing speed.

Revision 6884 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 11 08:24:53 2003 UTC (11 years, 6 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 175353 byte(s)
Diff to previous 6741
Fix a problem in THistPainter::PaintStat and PaintStat2.
The parent of the TPaveStats was erroneously set to fFunctions
instead of the parent histogram

Revision 6741 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 18 15:28:50 2003 UTC (11 years, 7 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 175369 byte(s)
Diff to previous 6696
From Olivier;
The option Z (palette drawing) now works with CONT1.

Revision 6696 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 6 16:41:53 2003 UTC (11 years, 7 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 175369 byte(s)
Diff to previous 6689
In THistPainter::PaintStat and PaintStat2 take into account the text size
when computing the original size of the stats box.
If the text size for the stats box is null (returned by gStyle->GetStatTextSize)
the algorithm uses the previous algorithm computing the original size using the number
of lines in the box.

Revision 6689 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 5 17:11:29 2003 UTC (11 years, 7 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 175184 byte(s)
Diff to previous 6668
Add more comments in THistPainter::Paint in the section about the "Stats" box.

Revision 6668 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 30 20:37:46 2003 UTC (11 years, 7 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 174571 byte(s)
Diff to previous 6643
Fix a problem in THistPainter::PaintTitle when the following
combination happens:
  a histogram with no title is drawn in the pad
  a TPaveText is drawn in the same pad
(thanks to Jiri Masik for reporting)

Revision 6643 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 17 08:44:46 2003 UTC (11 years, 8 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 174504 byte(s)
Diff to previous 6612
Modify THistPainter::PaintTitle to support the funny case when
a histogram is named "title"

Revision 6612 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 13 14:59:36 2003 UTC (11 years, 8 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 174343 byte(s)
Diff to previous 6580
From Olivier:
 - LogZ now works for contours and surfaces (the color part).
 - In case of SURF3 option with LogZ, the color contour plot is now drawn
   on top of the surface (before the position was "random").

Revision 6580 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 8 15:20:05 2003 UTC (11 years, 8 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 174340 byte(s)
Diff to previous 6527
From Axel Naumann:
A fix in PaintTitle to take into account gStyle->GetTitleH()

Revision 6527 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 2 14:43:08 2003 UTC (11 years, 8 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 174342 byte(s)
Diff to previous 6460
Fix by Olivier in PaintColorLevels to have a more rational behaviour
in contour levels and the color palette for the "col" and "cont" algorithms.

Revision 6460 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 17 07:59:52 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 174344 byte(s)
Diff to previous 6445
Remove obsolete comment in THistpainter::Paint about option "hist'

Revision 6445 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 14 16:54:31 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 174430 byte(s)
Diff to previous 6423
From Olivier.
Implement new histogram drawing option "]["
When this option is specified, the vertical lines for the first and last bin
are not drawn.
This option is interesting when superimposing many histograms on the same picture.

Revision 6423 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 11 13:05:48 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 174149 byte(s)
Diff to previous 6417
Fix by Olivier for eliminating empty bins with options col.

Revision 6417 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 10 17:09:18 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 174088 byte(s)
Diff to previous 6413
Add additional comments describing the option "hist"

Revision 6413 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 10 09:00:21 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 173858 byte(s)
Diff to previous 6399
From Olivier;
 New function SetTimeOffset in TAxis and TGaxis to change the time offset
for time Axis. This implied also changes in SetTimeFormat

Revision 6399 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 7 21:41:07 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 173838 byte(s)
Diff to previous 6338
Add new comments in THistPainter::PaintStat proposed by Jiri Masik

Revision 6338 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 21 16:23:59 2003 UTC (11 years, 10 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 173618 byte(s)
Diff to previous 6336
The color palette for surfaces was computed differently than for the COL
plot.

Revision 6336 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 21 09:09:48 2003 UTC (11 years, 10 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 173611 byte(s)
Diff to previous 6312
Fix to a precision problem (<= instead of <) in the algorithm allocating the color number
in function of the contour number.

Revision 6312 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 17 13:02:21 2003 UTC (11 years, 10 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 173612 byte(s)
Diff to previous 6271
From Olivier:
THistPainter::PaintHist
      - In case of option "line" the center of the bin was used to fill
        the vector pass to TGraph::PaintGrapHist. This generated
        incompatibilities when option "line" was used with other options.
      - Clean up, removed a lot of useless code.

TGraph::PaintGrapHist:
      - Take into account the modification done in THistPainter::PaintHist
      - In case of low resolution the histogram drawing was shifted by
        one bin on the left.

Revision 6271 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 7 10:13:12 2003 UTC (11 years, 10 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 175741 byte(s)
Diff to previous 6232
Change const Int_t kCannotRotate = BIT(11);
to const UInt_t kCannotRotate = BIT(11);

Revision 6232 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 3 20:29:26 2003 UTC (11 years, 10 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 175740 byte(s)
Diff to previous 6173
In THistPainter::PaintTable, call the Paint functions when
the number of entries is negative (can be set on purpose by the user)

Revision 6173 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 24 10:33:06 2003 UTC (11 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 175740 byte(s)
Diff to previous 6169
From Olivier:
New method GetContourLevelPad in TH1. It returns the contour level value
in Pad coordinates ie: if the Pad is in log scale along Z, the log value
of the level is returned. This was needed to draw user defined contours in
PaintContour and PaintColorLevels in THistPainter.

Revision 6169 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Feb 22 16:21:11 2003 UTC (11 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 176011 byte(s)
Diff to previous 6161
In TPad::RedrawAxis, implement a new option "g"
//
//  By default, if the pad has the options gridx or/and gridy activated,
//  the grid is not drawn by this function.
//  if option="g" is specified, this will force the drawing of the grid
//  on top of the picture

THistPainter::Paint modified to support the new option from RedrawAxis.

Revision 6161 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 21 15:08:44 2003 UTC (11 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 175684 byte(s)
Diff to previous 6159
Take advantage of the new functions in TStyle to set the default
options for the axis attributes and the histogram title.

Revision 6159 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 21 11:33:41 2003 UTC (11 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 175676 byte(s)
Diff to previous 6156
Take into account user-given contour levels in PaintColorLevels

Revision 6156 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 20 22:39:51 2003 UTC (11 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 175736 byte(s)
Diff to previous 6110
Add a new argument drawGridOnly to THistPainter::PaintAxis.
In THistPainter::PaintHist, PaintAxis is called first to paint the grid only
if a grid has been requested in the pad. A second call to PaintAxis
will draw the axis without the grid.
This change is to make sure that the grid is drawn in the background
and the axis tick marks in the foreground of the pad.

Revision 6110 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 12 12:05:32 2003 UTC (11 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 175378 byte(s)
Diff to previous 6109
Paintaxis before painting the histogram to avoid the grid on top
of the axis in case a grid is selected.

Revision 6109 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 12 11:19:56 2003 UTC (11 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 175401 byte(s)
Diff to previous 6067
Optimisation in THistPainter::PaintInit when computing the Y limits.
In case of a Logy scale, do not use the function values to compute the
minimum if the corresponding bin content is null.

Revision 6067 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 7 09:04:53 2003 UTC (11 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 175391 byte(s)
Diff to previous 6008
In THistPainter::PaintTitle, change the default minimum for the title box
from 60% to 70% of the width of the pad.

Revision 6008 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 29 16:49:31 2003 UTC (11 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 175391 byte(s)
Diff to previous 5932
From Olivier:
* New option SURF5:

  "SURF5"  : Same as SURF3 but only the colored contour is drawn. Used
             with option CYL, SPH or PSR it allows to draw colored
             contours on a sphere, a cylinder or a in pseudo rapidy space.
             In cartesian or polar coordinates, option SURF3 is used.

 * With option SURF4 (Gouraud shading) only the cartesian system was
   allowed. This restriction (in the funtion analysing the plotting
   options) has been removed because Gouraud shading works in all the
   coordinate systems (POL, CYL, SPH and PSR).

Revision 5932 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 17 13:55:47 2003 UTC (12 years ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 174814 byte(s)
Diff to previous 5915
Allocate and Deallocate dynamic arrays fXbuf and fYbuf in THistPainter::Paint
instead of the constructor/destructor.
In case of many histograms, the previous allocation was a substantial
overhead in memory.

Revision 5915 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 14 18:19:00 2003 UTC (12 years ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 174687 byte(s)
Diff to previous 5893
Fix a problem when computing the color palette in logx scale

Revision 5893 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 13 13:53:55 2003 UTC (12 years ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 174582 byte(s)
Diff to previous 5860
The color palette was drawn twice as soon as the pad was redrawn.

Revision 5860 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 9 17:13:59 2003 UTC (12 years ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 174579 byte(s)
Diff to previous 5745
From Olivier:
 Implement non equidistant levels in option COL for 2D histogram drawing.

Revision 5745 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 5 10:24:15 2002 UTC (12 years, 1 month ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 173815 byte(s)
Diff to previous 5740
From Olivier;
Fix a problem in THistPainter::PaintColor replacing Hparam.zmin
by the real minimum fH->GetMinimum()

Revision 5740 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 4 15:11:52 2002 UTC (12 years, 1 month ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 173793 byte(s)
Diff to previous 5677
In THistPainter::PaintHist remove the dependency of the histogram
line width as a function of the canvas size.

Revision 5677 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 27 08:20:21 2002 UTC (12 years, 1 month ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 173818 byte(s)
Diff to previous 5637
Use gStyle->GetNumberContours instead of the default constant 20.

Revision 5637 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 22 10:07:03 2002 UTC (12 years, 2 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 173657 byte(s)
Diff to previous 5591
Protect HParam.xfirst to be >= 1

Revision 5591 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 15 16:05:52 2002 UTC (12 years, 2 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 173598 byte(s)
Diff to previous 5532
Rewrite THistPainter::PaintPalette to use the new class TPaletteAxis.

Revision 5532 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 4 21:18:08 2002 UTC (12 years, 2 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 175084 byte(s)
Diff to previous 5472
In THistPainter::PaintInit, optimize the computation of the minimum scale in case
of log scale and the maximum is less than 1.

Revision 5472 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 24 16:32:28 2002 UTC (12 years, 3 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 174991 byte(s)
Diff to previous 5467
From Marco van Leeuwen
"I've adapted the THistPainter to allow logarithmic axes (x, y and z)
when using the CONT drawing options."

Revision 5467 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 23 11:15:59 2002 UTC (12 years, 3 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 174109 byte(s)
Diff to previous 5464
Fix in PaintLego and PaintSurface in the new algorithm computing the scale.

Revision 5464 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 23 06:26:58 2002 UTC (12 years, 3 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 174099 byte(s)
Diff to previous 5373
Protect THistPainter::PaintLego and THistPainter::PaintSurface for the case
where zmin >= zmax

Revision 5373 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 2 10:29:40 2002 UTC (12 years, 3 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 173809 byte(s)
Diff to previous 5302
Fix a problem in THistPainter::PaintColorLevels when a maximum has been set.

Revision 5302 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Sep 15 19:48:00 2002 UTC (12 years, 4 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 173807 byte(s)
Diff to previous 5235
Use the plugin manager and the new interface TVirtualUtilPad instead
of hardwired calls to the interpreter.

Revision 5235 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Sep 7 20:55:42 2002 UTC (12 years, 4 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 173475 byte(s)
Diff to previous 5180
TStyle::SetEndErrorSize moved from declaration to implementation file.
Document this function that can be used to remove the small lines at the end
of the error bars.
Default value for parameter changed from 1 to 2 in such a way that calling
  gStyle->setEndErrorSize(0); will remove the end lines

Modify THistPainter::PaintErrors and TGraphErrors::Paint accordingly.

Revision 5180 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 23 12:10:16 2002 UTC (12 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 173477 byte(s)
Diff to previous 5139
Fix a bug in THistPainter::PaintStat2 when drawing the number of under/overflows.

Revision 5139 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 16 21:16:00 2002 UTC (12 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 173471 byte(s)
Diff to previous 5129
Add a new enum member TH1::kNoTitle.
When the corresponding bit is set the histogram title is not drawn
by THistPainter::PaintTitle.
To set the option, use:
  hist->SetBit(TH1::kNoTitle);
The bit is persistent.

Revision 5129 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 16 10:54:11 2002 UTC (12 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 173428 byte(s)
Diff to previous 5125
Add more comments and a warning in SetOptStats

Revision 5125 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 15 14:18:32 2002 UTC (12 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 173272 byte(s)
Diff to previous 5122
Add a new option "P0" in THistPainter::Paint and equivalent change
in TGraph::PaintGrapHist.
//    "P"      : Draw current marker at each bin except empty bins
//    "P0"     : Draw current marker at each bin including empty bins

Revision 5122 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 13 21:17:59 2002 UTC (12 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 173095 byte(s)
Diff to previous 5094
Add new features in THStack:
 -possibility to specify a drawing option in THStack::Add
 -THStack::SavePrimitive save more parameters and options

The TVirtualHistpainter, THistPainter modified accordingly.

Revision 5094 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 9 08:29:07 2002 UTC (12 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 173102 byte(s)
Diff to previous 5075
Add a new entry Hoption.HighRes in Hoption_t. By default Hoption.HighRes =0.
It is non zero when the option "High Resolution 9 is selected in TH1::Draw.
The option low resolution is automatically selected in TGraph::PaintGrapHist
when the number of points is greater than the number of bins in the pad.
However, for some pathological cases (difficult to detect automatically)
like the example below, it is necessary to force high resolution.
{
  TH1F* h1=new TH1F("hist","hist",2048,0,2048);
  for(int i=0; i<1024;i++){
         h1->SetBinContent(i*2,i);
         h1->SetBinContent(i*2+1,5);
  }
  h1->SetMarkerColor(2);
  h1->SetMarkerStyle(21);
  h1->Draw("p9"); //without option 9 result is not good
}

Revision 5075 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 7 10:59:53 2002 UTC (12 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 172707 byte(s)
Diff to previous 5035
Modify comments in THistPainter::PaintContour

Revision 5035 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 31 22:05:16 2002 UTC (12 years, 5 months ago) by rdm
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 172698 byte(s)
Diff to previous 5019
in DefineColorLevels() the variable theColor is again computed as:
  theColor = Int_t(i*...
instead of:
  theColor = Int_t((i+0.99)*...
If 0.99 is added to "i" the first contour produced is wrong. By Olivier.

Revision 5019 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 28 07:31:53 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 172767 byte(s)
Diff to previous 4947
The logic in THistPainter::PaintTable to invoke PaintStat2 was wrong.
The first object in the list of functions is not always (and rarely)
a TF2 object. One must iterate on the list of functions to find the
first object deriving from TF1.

Revision 4947 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 16 20:32:56 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 172680 byte(s)
Diff to previous 4911
Add new function:
void       ProcessMessage(const char *mess, const TObject *obj)
The function processes the following messages used by TF3:
SetF3, SetF3ClippingBoxOff, SetF3ClippingBoxOn

Revision 4911 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 15 10:56:22 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 172038 byte(s)
Diff to previous 4869
Change THistPainter::PaintStat and PaintStat2 to implement the new logic
with TPaveStats. The "stats" object is now added to the list of functions
instead of being a member of THistPainter. With this change, it is easy
to support multiple stats box in the same pad.
//
// With the option "same", the statistic box is not redrawn.
// With the option "sames", the statistic box is drawn. If it hiddes
// the previous statistics box, you can change its position
// with these lines (if h is the pointer to the histogram):
//
//  Root > TPaveStats *st = (TPaveStats*)h->GetListOfFunctions()->FindObject("stats")
//  Root > st->SetX1NDC(newx1); //new x start position
//  Root > st->SetX2NDC(newx2); //new x end position

It is not necessary anymore to change the name of the stats box if one wants
to add a new stats box. For example, the following works correctly:
  hpx.draw();
  hprof.Draw("sames"); //move teh position of teh stats box with the mouse

Note that the system is backward compatible is a user calls
  TPaveStats *stats = (TPaveStats*)gpad->GetPrimitive("stats")
thanks to the new logic in TPad::GetPrimitive calling FindObject on each
object in the list.

Revision 4869 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 10 11:28:20 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 172134 byte(s)
Diff to previous 4868
Patch from Olivier
When drawing errors with option E3 it may happen that the number of points
in the final filled-area is smaller that 2*(the_number_of_error_bars).
In a such case the arrays used to draw the filled area must be arranged
before being plotted. The bug was visible with the following little macro:

void e3(){
   TH1F* h_test = new TH1F("h_test","h_test", 45, 0, 12 );
   for (Int_t i = 8; i <= 45; ++i) {
      h_test->SetBinContent(i, 4.0);
      Float_t error = (40.1-i)/40.0;
      h_test->SetBinError(i, error);
   }
   TCanvas* canvas = new TCanvas("canvas", "canvas", 1);
   h_test->SetMinimum(2);
   h_test->SetFillColor(kRed);
   h_test->Draw("E3");
   h_test->Draw("E SAME");
}

Revision 4868 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 10 10:15:15 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 171731 byte(s)
Diff to previous 4821
From Olivier:
Fix a problem in THistPainter::PaintColorLevels affecting Postscript output
when a color palette is drawn.

Revision 4821 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 5 12:31:38 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 171728 byte(s)
Diff to previous 4813
From Olivier:
- Bug fixed in PaintPalette. Hparam.zmin and Hparam.zmax were used instead
of the real minimum and maximum of the histogram. This produced wrong
palette painting. The zmin and zmax in Hparam were used to handle Log
option on z axis. This is not necessary because if the maximum of the
histogram is <= 0 nothing is painted, and in the case where maximum is >0
and the minimum <= 0, TH1::GetMinimum returns a positive value equal to
max/1000.

- 2d functions painted with option COL produced empty boxes instead of
filled color boxes. This was a side effect of a change in the function
constructor in which the fill style is now set to "empty".
fH->SetFillStyle(1);
has been added in PaintColorLevels to fix that.

- In DefineColorLevels "theColor" should be computed as:
theColor = Int_t((i+0.99)....
to be compatible with the same value computed in PaintPalette

- A similar problem occurred in PaintContour. "theColor" was computed as:
Int_t((ipoly+1.99)... instead of: Int_t((ipoly+0.99) ...

Revision 4813 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 3 20:25:04 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 171763 byte(s)
Diff to previous 4717
In THistPainter::PaintFunction, add support for optional parameters
for objects in the list of functions. In the old implementation,
objects in the list of functions were drawn with the default
drawing option.

Revision 4717 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jun 15 09:38:51 2002 UTC (12 years, 7 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 171590 byte(s)
Diff to previous 4610
Fix a problem in THistPainter::PaintBoxes in case of log log scale and when
the axis values are very small.
VS: ----------------------------------------------------------------------

Revision 4610 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 29 18:39:44 2002 UTC (12 years, 7 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 171441 byte(s)
Diff to previous 4587
A patch by Olivier Couet with the mods to get a TF3 object paint.
The mods include:
 -TF3 painting
 -TF3 color settings (including context menu)
 -Clipping box
Example:
   TF3 *fun3 = new TF3("fun3","sin(x*x+y*y+z*z-36)",-2,2,-2,2,-2,2);
   fun3->Draw();

Revision 4587 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 23 14:45:14 2002 UTC (12 years, 8 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 169165 byte(s)
Diff to previous 4575
New version of PaintH3iso by Olivier. Histo fill color automatically
taken into account and 3-d view from TTree::Draw accepts option "iso"

Revision 4575 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 21 13:19:26 2002 UTC (12 years, 8 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 167770 byte(s)
Diff to previous 4459
The old class TLego replaced by new class TPainter3dAlgorithms (Olivier Couet).
Several new 3d algorithms added in this class to visualize TF3 or TH3.

Revision 4459 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 4 16:07:33 2002 UTC (12 years, 8 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 164901 byte(s)
Diff to previous 4322
When drawing bar charts (option bar or hbar) the bars are drawn from 0 rather
than from the minimum Y value. Bins with positive values to be drawn as bars
 extending from the X axis upwards, and bins with negative values to be drawn
as bars extending from the X axis downwards.

Revision 4322 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 8 06:38:41 2002 UTC (12 years, 9 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 164483 byte(s)
Diff to previous 4291
Improvements in THistPainter::PaintPalette in case:
 - the range is less than the number of colors
 - the range is less than the number of possible contours (default 20)

Revision 4291 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 2 15:58:42 2002 UTC (12 years, 9 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 164400 byte(s)
Diff to previous 4285
Patch from Olivier fixing a problem when drawing a 2-D histogram with
option "surf3". The problem was visible when using polar coordinates.

Revision 4285 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 2 10:39:53 2002 UTC (12 years, 9 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 164417 byte(s)
Diff to previous 4216
Implement new drawing option "LF2". When this option is specified,
the histogram is paint with a fillarea connecting the center of the bins.

Revision 4216 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 21 16:15:43 2002 UTC (12 years, 10 months ago) by rdm
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 164062 byte(s)
Diff to previous 4174
This patch improves to things:

 - The background grid on lego and surface plots is now aligned on the
   axis main tick marks. It works for optimised and none optimised axis
   divisions.

 - It is now possible to have non optimised axis divisions (number of
   divisions less than 0) on all 3D plots (lego and surfaces) axis and on
   the colour palette axis.

Olivier

Revision 4174 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 13 17:00:33 2002 UTC (12 years, 10 months ago) by rdm
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 164312 byte(s)
Diff to previous 4157
improved look of over and undeflow for 2d histo's in TPaveStats. By Olivier C.

Revision 4157 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 9 09:49:11 2002 UTC (12 years, 10 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 164311 byte(s)
Diff to previous 4156
Add argument Option_t *option to all THistPainter::Paintxxx functions.
The new argument is used in THistPainter::PaintScatterPlot to control
the number of dots. A new drawing option "scat=ff", eg "scat=10" means
draw a scatter plot drawing a number of dots per cell equal to
the cell content times 10. ff is a floating point. One can scale up/down,
eg scat=0.1, scat=3.14, scat=1e-5. Default is "scat=1".

Revision 4156 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 8 18:44:17 2002 UTC (12 years, 10 months ago) by rdm
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 163552 byte(s)
Diff to previous 4105
improved TPaveStat layout by Olivier Couet.
- It handles properly the fit parameters.
- The vertical text positioning is better (uses the vertical alignment
  "center").
- Chi2 is printed with the Greek characters.
I noticed that the right alignment of TLatex on screen is not always
perfect. On PS file it is perfect.

Revision 4105 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 25 23:10:33 2002 UTC (12 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 163528 byte(s)
Diff to previous 4087
Use the new function TStyle::GetEndErrorSize to set the length of
the lines drawn at the end of the error bars.
//     Use gStyle->SetErrorX(dx) to control the size of the error along x.
//     set dx = 0 to suppress the error along x.
//
//     Use gStyle->SetEndErrorSize(np) to control the size of the lines
//     at the end of the error bars (when option 1 is used).
//     By default np=1. (np reprersents the number of pixels).

Revision 4087 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 25 09:57:20 2002 UTC (12 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 163392 byte(s)
Diff to previous 4084
In PaintTitle, automatically rezize the TPaveText along X whenever
the title length changes.

Revision 4084 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Feb 24 18:05:34 2002 UTC (12 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 163252 byte(s)
Diff to previous 3979
Several optimisations in this patch:

- in PaintTitle, use TLatex::GetXsize to evaluate the length of the TPaveText
where to draw the title.

- In PaintContour, PaintLego, PaintPalette, simplify the logic computing the color
levels. The color palette is now coherent with the colors used in the
contour, including in case of user defined contours or a logZ scale.

Revision 3979 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 14 08:30:04 2002 UTC (12 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 162770 byte(s)
Diff to previous 3915
In THistPainter::PaintLego and PaintSurface, always use the current scale
instead of taking it from the TView.

Revision 3915 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 7 09:10:23 2002 UTC (12 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 163105 byte(s)
Diff to previous 3906
New feature added by Philippe:
I am taking advantage of the fact that we have one painter per histogram
to individualize a little better the stats box.

The HistPainter now handles a pointer to the stats box.  In particular this
means that you can rename it and still have it being updated.  The stats can
also now be retrieved via hist->GetPainter()->GetStats();  The HistPainter
now keeps contact with the PaveStats box whether its name have changed or not.

Revision 3906 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 6 21:57:22 2002 UTC (12 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 162334 byte(s)
Diff to previous 3865
Implement a change suggested by Tony Colley:
Combining the "L" and "P" options of TH1::Draw results in a display of markers
only (the "L" is ignored). Also, setting marker styles on the TH1 is
ineffective, the styles must be set using gStyle.

Revision 3865 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 4 23:23:03 2002 UTC (12 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 162209 byte(s)
Diff to previous 3748
In THistPainter::DistancetoPrimitive, take into account all the forms
(upper/lower case and mixture) for the option "same" when selecting
the axis.

Revision 3748 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 24 11:39:31 2002 UTC (13 years ago) by rdm
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 162148 byte(s)
Diff to previous 3742
rename IOSFwd.h and IOStream.h to Riosfwd.h and Riostream.h. The change
is necessary because on Windows which is case insensitive IOStream.h
hides the real iostream.h.

Revision 3742 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 23 17:52:52 2002 UTC (13 years ago) by rdm
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 162148 byte(s)
Diff to previous 3739
use IOSFwd.h in headers instead of <iosfwd> or many other ifdef'ed variant
and IOStream.h in the source instead of <iostream[.h]>, <fstream[.h]> and
<iomanip[.h]>.

Revision 3739 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 23 09:34:58 2002 UTC (13 years ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 162357 byte(s)
Diff to previous 3697
In THistPainter::PaintText use gStyle->GetPaintTextFormat instead
of the fix format "g"

Revision 3697 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 18 11:38:28 2002 UTC (13 years ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 162157 byte(s)
Diff to previous 3637
Add new functionality to the histogram package via the new functions
SetBuffer, BufferFill and BufferEmpty.
    virtual void     SetBuffer(Int_t buffersize, Option_t *option="");
    virtual Int_t    BufferFill(Axis_t x, Stat_t w); //protected
    virtual Int_t    BufferEmpty();

Add new members:
    Int_t         fBufferSize;      //fBuffer size
    Double_t     *fBuffer;          //[fBufferSize] entry buffer

When SetBuffer is called, a dynamic buffer is created to hold up to
fBufferSize entries. When the standard Fill functions are called,
the arguments are put in the buffer, if a buffer is specified.
When the number of entries in the buffer is greater than fBufferSize,
the function BufferEmpty is automatically called.
BufferEmpty will fill the histogram with the entries in the buffer.

In case one of the axis has its lower limit greater or equal
to its upper limit, BufferEmpty calls the THLimitsFinder::FindGoodLimits
to compute the axis limits based on the entries in the current buffer.

When an histogram is created with an axis lower limit greater or equal
to its upper limit, the SetBuffer is automatically called with an
argument fBufferSize equal to fgBufferSize (default value=1000).
fgBufferSize may be reset via the static function TH1::SetDefaultBufferSize.

Revision 3637 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 10 07:26:42 2002 UTC (13 years ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 162110 byte(s)
Diff to previous 3602
Use TF1::GetNDF to compute the number of degrees of freedom in the fit
(thanks Andrei Gaponenko)

Revision 3602 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 7 18:11:00 2002 UTC (13 years ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 162139 byte(s)
Diff to previous 3559
New functions:
     virtual void       PaintBar();
     virtual void       PaintBarH();
     virtual Int_t      PaintInitH();

//  The BAR options
//  ===============
//  When the option "bar" or "hbar" is specified, a bar chart is drawn.
//   ----Vertical BAR chart: Options "bar","bar0","bar1","bar2","bar3","bar4"
//  The bar is filled with the histogram fill color
//  The left side of the bar is drawn with a light fill color
//  The right side of the bar is drawn with a dark fill color
//  The percentage of the bar drawn with either the light or dark color
//    is  0 per cent for option "bar" or "bar0"
//    is 10 per cent for option "bar1"
//    is 20 per cent for option "bar2"
//    is 30 per cent for option "bar3"
//    is 40 per cent for option "bar4"
//
//  Use TH1::SetBarWidth to control the bar width (default is the bin width)
//  Use TH1::SetBarOffset to control the bar offset (default is 0)
//    See example in $ROOTSYS/tutorials/hbars.C

//
//   ----Horizontal BAR chart: Options "hbar","hbar0","hbar1","hbar2","hbar3","hbar4"
//  An horizontal bar is drawn for each bin.
//  The bar is filled with the histogram fill color
//  The bottom side of the bar is drawn with a light fill color
//  The top side of the bar is drawn with a dark fill color

Revision 3559 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 2 21:46:33 2002 UTC (13 years ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 147077 byte(s)
Diff to previous 3530
Minor cosmetic change.

Revision 3530 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 23 09:10:32 2001 UTC (13 years, 1 month ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 147062 byte(s)
Diff to previous 3454
Use new function TGaxis::ImportAxisAttributes instead of the code
duplicated in multiple places.

Revision 3454 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 10 21:27:24 2001 UTC (13 years, 1 month ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 151407 byte(s)
Diff to previous 3428
Modify THistPainter::PaintErrors to use the fill and line attributes
of the histogram when drawing the error bars or errors contours.

Revision 3428 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 9 17:35:39 2001 UTC (13 years, 1 month ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 151131 byte(s)
Diff to previous 3400
Remove the old non-operational version of stacked lego plots.
Add new code to support the new class THStack (stacked histograms).

Revision 3400 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 5 17:02:50 2001 UTC (13 years, 1 month ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 151135 byte(s)
Diff to previous 3227
Modify THistPainter::PaintBoxes to use the current histogram line style and
width rather than forcing linestyle=1 and linewidth=1

Revision 3227 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 16 15:01:51 2001 UTC (13 years, 2 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 151357 byte(s)
Diff to previous 3145
In THistPainter::PaintErrors, change the algorithm computing the length of the
line at the end of the error bars when option "e1p" is used.
The old algorithm computef the length as being proportional to the marker size.
The new algorithm, in addition, takes into account the "errorx" parameter
as given by gStyle->GetErrorx().

Revision 3145 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 31 11:29:28 2001 UTC (13 years, 2 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 151347 byte(s)
Diff to previous 3116
When painting the TAxis objects, copy the kNoExponent bit from TAxis
to TGaxis.

Revision 3116 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 26 16:23:33 2001 UTC (13 years, 3 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 150885 byte(s)
Diff to previous 3096
Modify DistancetoPrimitive to select the Z axis or the axis of the color palette.

Revision 3096 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 24 13:47:25 2001 UTC (13 years, 3 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 150829 byte(s)
Diff to previous 3033
Optimize the axis layout in THistPainter::PaintLegoAxis when painting
a surface at theta=90 and phi = 0 degrees (case of option cont4).

Revision 3033 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 15 09:46:33 2001 UTC (13 years, 3 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 150815 byte(s)
Diff to previous 2876
Implement a patch from Jiri Masik to avoid drawing the horizontal lines twice
for the error bars in case the options "hist" and "e" are specified.

Revision 2876 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 27 09:53:24 2001 UTC (13 years, 3 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 150641 byte(s)
Diff to previous 2676
In THistPainter::PaintLego and PaintSurface, the view range is not recomputed
in case of option "same". This simplifies the automatic redraw of surfaces
or legos on top of an existing lego/surface.
Do not draw axis with option "same"

Revision 2676 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 14 06:49:46 2001 UTC (13 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 150254 byte(s)
Diff to previous 2668
Document the option "TEXT" and also the new option "[cutg]" in teh list
of options for drawing 2-D histograms.

Revision 2668 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 13 08:22:56 2001 UTC (13 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 149535 byte(s)
Diff to previous 2663
Optimize size and end position of error bars around the symbol
in case of assymetric pads in THistPainter::PaintErrors.

Revision 2663 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 10 13:37:45 2001 UTC (13 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 149643 byte(s)
Diff to previous 2603
Fix a problem in THistPainter::PaintErrors in case of the default symbol=1.

Revision 2603 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 20 21:05:30 2001 UTC (13 years, 6 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 149643 byte(s)
Diff to previous 2600
Optimize size of error bars/error bar separators in case of small pads
or very assymetric pads. Take into account aspect ratio when computing
the marker size in TPostScript.

Revision 2600 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 20 13:49:53 2001 UTC (13 years, 6 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 149582 byte(s)
Diff to previous 2584
The THistPainter and TLego classes have been extended with
new functions to draw selected regions of a 2-d histogram.
One can create one or more graphical cuts (TCutG objects)
and specify this (these) cuts in option string of the Draw
function. Example, assuming two graphical cuts with name
"cut1" and "cut2", one can do:
  h1.Draw("lego");
  h2.Draw("[cut1,-cut2],surf,same");
The second Draw will superimpose on top of the first lego plot
a subset of h2 using the "surf" option with:
 -all the bins inside cut1
 -all the bins outside cut2
Up to 16 cuts may be specified in the cut string delimited by "[..]"

Currently only the following drawing options are sensitive to
the cuts option: col, box, scat, hist, lego, surf and cartesian
coordinates only.

A set of new functions has been added in THistPainter:
    virtual Bool_t  IsInside(Int_t x, Int_t y);
    virtual Bool_t  IsInside(Double_t x, Double_t y);
    virtual Int_t   MakeCuts(char *cutsopt);

The MakeCuts function is called by THistPainter::MakeChopt to fill
the new THistpainter data members: fNcuts, fCutsOpt and fCuts.
The functions IsInside are called by the THistpainter functions
or the TLego functions.

Revision 2584 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 17 09:07:43 2001 UTC (13 years, 6 months ago) by rdm
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 147191 byte(s)
Diff to previous 2558
changes due to TColor::HLStoRGB() and TColor::TGBtoHLS() now being static.

Revision 2558 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 10 16:59:53 2001 UTC (13 years, 6 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 147188 byte(s)
Diff to previous 2439
Remove optimization for cases when one bin is less than one pixel for 2-d histograms
in THistPainter::GetObjectInfo

Revision 2439 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 22 16:10:23 2001 UTC (13 years, 7 months ago) by rdm
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 147161 byte(s)
Diff to previous 2371
make code more const char* correct (i.e. "strings" must be const char*) and
declare several functions extern "C". Mods by Dave Morrison.

Revision 2371 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 5 11:34:33 2001 UTC (13 years, 7 months ago) by rdm
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 147160 byte(s)
Diff to previous 2193
in case of fixed sized fonts for stats and title use pixel size as specified
in current style.

Revision 2193 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 14 06:42:57 2001 UTC (13 years, 8 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 147140 byte(s)
Diff to previous 2021
Comment unused code (keep the commented code in view of future changes)

Revision 2021 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 20 12:28:21 2001 UTC (13 years, 9 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 147130 byte(s)
Diff to previous 1844
Mods in THistPainter::PaintErrors to support option "e3" with log scales.

Revision 1844 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 22 07:26:06 2001 UTC (13 years, 10 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 147042 byte(s)
Diff to previous 1803
In THistPainter::PaintInit modify the algorithm computing the min and max along Y
when all bin contents are equal.

Revision 1803 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 13 10:41:32 2001 UTC (13 years, 10 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 146873 byte(s)
Diff to previous 1759
Insert a fix by Damir Buskulic in DistancetoPrimitive in the special case
of histograms with many bins and low resolution algorithm. Move an If statement

Revision 1759 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 7 12:57:02 2001 UTC (13 years, 10 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 146873 byte(s)
Diff to previous 1695
Changes by Damir Buskulic in THistPainter::DistancetoPrimitive to speed up the search
in case of histograms with a huge number of bins

Revision 1695 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Feb 24 20:54:27 2001 UTC (13 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 145657 byte(s)
Diff to previous 1688
In THistPainter::PaintContour support case with bins with negative contents.
Add one extra argument to THistPainter::PaintContourLine.

Revision 1688 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 23 11:47:21 2001 UTC (13 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 145081 byte(s)
Diff to previous 1686
Add protection in THistPainter::PaintBoxes. Never draw a box bigger than
the currently specified maximum.

Revision 1686 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 23 10:31:28 2001 UTC (13 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 144967 byte(s)
Diff to previous 1665
Add special case in THistPainter::PaintContour. When the number of contours
is less or equal to 2, the color used for the contour is the histogram color itself.

Revision 1665 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 22 11:03:57 2001 UTC (13 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 144952 byte(s)
Diff to previous 1609
The option "Z" to draw the color palette can be used with all 2-D drawing options.
Update comments indicating how to set the various attributes of the color palette.

Revision 1609 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 15 07:17:33 2001 UTC (13 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 144553 byte(s)
Diff to previous 1532
Modify the algorithm in THistPainter::PaintContour for the computation
of the top level contour.

Revision 1532 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 6 14:43:20 2001 UTC (13 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 144553 byte(s)
Diff to previous 1505
Implement a better algorithm in THistPainter::PaintHist to scale the line width
for the histogram or functions.

Revision 1505 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 1 17:43:00 2001 UTC (13 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 144476 byte(s)
Diff to previous 1492
Optimization for computing the maximum of the scale for legos and surface plots.

Revision 1492 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 30 08:27:33 2001 UTC (13 years, 11 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 144476 byte(s)
Diff to previous 1443
Modify the algorithm computing the min/max of the scale in Z in
functions THistPainter::PaintLego and THistPainter::PaintSurface.
The new algorithm gives a better scale in case (zmax-zmin)/(zmax+zmin)
is very small.

Revision 1443 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 22 11:19:57 2001 UTC (14 years ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 144448 byte(s)
Diff to previous 1429
Support case when functions are classes derived from TF1 when painting
the objecst in the list of functions.

Revision 1429 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 19 17:28:00 2001 UTC (14 years ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 144443 byte(s)
Diff to previous 1287
Fix a problem in the Fitpanel when selection the option "Do not draw the function"
This option did not work anymore because the pad is always updated when the button
is released. To fix the problem, a bit TF1::kNotDraw is set in the function itself.

Revision 1287 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 26 14:19:03 2000 UTC (14 years, 1 month ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 144399 byte(s)
Diff to previous 1236
Correct THistPainter::PaintAxis to use axmin,axmax,aymin,aymax instead
of HParam.xmin, etc. This fixes a long standing problem when the function
TPad::RedrawAxis is called.

Revision 1236 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 18 15:12:17 2000 UTC (14 years, 1 month ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 144543 byte(s)
Diff to previous 1205
Take into account error bar when computing the minimum y value for the range
in y in THistPainter::PaintInit.
In THistPainter::PaintErrors, do not draw the error bar if the y value is null
and also the error along y.

Revision 1205 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 13 15:13:57 2000 UTC (14 years, 1 month ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 144462 byte(s)
Diff to previous 965
      W A R N I N G   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     ==================================================================
A very long list of changes in this pre-release of version 3.00.
We have modified the signature of many functions (in particular TObject)
to introduce more constness in the system.
You must change your code if your class derives from TObject and uses
one of the modified functions such as ls, Print, Compare, Hash, etc.
The modified functions in TObject have the following signature:
   virtual TObject    *Clone() const;
   virtual Int_t       Compare(const TObject *obj) const;
   virtual void        Delete(Option_t *option=""); // *MENU*
   virtual void        DrawClass() const; // *MENU*
   virtual void        DrawClone(Option_t *option="") const; // *MENU*
   virtual void        Dump() const; // *MENU*
   virtual TObject    *FindObject(const TObject *obj) const;
   virtual char       *GetObjectInfo(Int_t px, Int_t py) const;
   virtual ULong_t     Hash() const;
   virtual void        Inspect() const; // *MENU*
   virtual Bool_t      IsEqual(const TObject *obj) const;
   virtual void        ls(Option_t *option="") const;
   virtual void        Print(Option_t *option="") const;

A similar operation has been done with classes such as TH1, TVirtualPad,
TTree, etc.

Revision 965 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 21 20:37:38 2000 UTC (14 years, 2 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 144456 byte(s)
Diff to previous 819
Several changes by Damir Buskulic to support the Log option for Legos.

Revision 819 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 25 15:05:43 2000 UTC (14 years, 3 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 145018 byte(s)
Diff to previous 818
Minor change in THistPainter::PaintErrors.
When Hoption.Error == 0 and Hoption.Mark !=0 , the marker is drawn
when the histogram bin content is zero and the minimum of the scale is not zero.

Revision 818 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 25 14:33:26 2000 UTC (14 years, 3 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 144996 byte(s)
Diff to previous 678
Mods in THistPainter::PaintHist to clip bins or function values
below the minimum or above the maximum.

Revision 678 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 29 07:39:48 2000 UTC (14 years, 3 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 145060 byte(s)
Diff to previous 646
Modify functions TGraph::PaintGrapHist and THistPainter::PaintHist to draw
the last point of a graph/histogram in case of a variable bin size histogram
and options "l" or "c" are used.

Revision 646 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 13 12:04:15 2000 UTC (14 years, 4 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 144939 byte(s)
Diff to previous 620
The color palette selected with the option "Z" is now drawn in the following cases:
 - All SURF options 1,2,3,4
 - CONT and CON4
 - LEGO2
 - COLZ
The color palette is drawn in all corrdinate systems

Revision 620 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 11 09:06:05 2000 UTC (14 years, 4 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 144864 byte(s)
Diff to previous 608
Simplify the logic in the Fitpanel functions to set the object and current pad.

Revision 608 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 8 07:41:01 2000 UTC (14 years, 4 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 145060 byte(s)
Diff to previous 534
Several classes modified to :
 - take into account the renaming of kObjInCanvas to kMustCleanup
 - the introduction of FindObject instead of GetPrimitive

Revision 534 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 27 20:05:05 2000 UTC (14 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 145072 byte(s)
Diff to previous 513
Minor changes in the comments to be in phase with the Users Guide.

Revision 513 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 21 06:12:47 2000 UTC (14 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 144128 byte(s)
Diff to previous 508
Add an extensive documentation of teh drawing options with many examples
in THistPainter::Paint.
In THistPainter::PaintLegoAxis, draw a line to materialize the phi axis
in case of a lego plot in polar coordinates.

Revision 508 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 20 10:06:44 2000 UTC (14 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 127189 byte(s)
Diff to previous 453
Update THistPainter::PaintContour to reset the histogram fill color before returning.

Revision 453 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 14 16:49:28 2000 UTC (14 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 127119 byte(s)
Diff to previous 427
- Optimize THistPainter::PaintErrors such that the vertical and horizontal
  lines go to the marker without a gap.

- New options to draw contours for 2-d histograms.
  The contour option "CONT" is now a pure 2-D option. It is not based
  on the surface/lego algorithms.
  This option computes now a set of points stored in a list of TGraph objects.
  The points in the TGraph are sorted, such that one contour can be drawn
  with one fill area. In addition, when the option "List" is specified,
  the list of generated TGraph objects is stored in a TObjArray with the
  name "contours". This TObjArray is accessible via gROOT->GetListOfSpecials().
  When the option "CONT" is used, one can superimpose new contours on top
  using the options "CONT1", "CONT2" or "CONT3".
  The previous algorithm used by the option "CONT" is still available
  as option "CONT4".
  For example, the following call
     h2->Draw("contzlist");
  produces:
    - a picture with surface colors to delimitate each contour
    - the color palette.
    - a list of the boundary points for each countour.
  The points used to draw the contours are saved in the TGraph format
  and are accessible in the following way:
  TObjArray *contours =
           gROOT->GetListOfSpecials()->FindObject("contours")
  Int_t ncontours = contours->GetSize();
  TList *list = (TList*)contours->At(i); //where i is a contour number
  list contains a list of TGraph objects. For one given contour, more than
  one disjoint polyline may be generated. The number of TGraphs per
  countour is given by list->GetSize().
  Here we show only the case to access the first graph in the list.
    TGraph *gr1 = (TGraph*)list->First();

Revision 427 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 7 12:33:41 2000 UTC (14 years, 5 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 121461 byte(s)
Diff to previous 324
Modify the algorithm to choose the color when drawing with the options
"cont", "surf" or "lego"

Support option option "Z" (to draw the color palette) with option "surf"

Revision 324 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 4 09:15:30 2000 UTC (14 years, 6 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 120918 byte(s)
Diff to previous 269
Modify the logic in THistPainter::PaintInit to create the iterator
on the list of functions. The iterator is now created outside the loop
and it is reset inside the loop.

Revision 269 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 22 13:28:37 2000 UTC (14 years, 7 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 120921 byte(s)
Diff to previous 265
new change for option "AH" and "same"

Revision 265 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 21 22:22:00 2000 UTC (14 years, 7 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 120921 byte(s)
Diff to previous 227
Option "AH" in THistPainter::PaintAxis is working again.

Revision 227 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 16 10:29:28 2000 UTC (14 years, 7 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 120921 byte(s)
Diff to previous 225
Modify THistPainter::PaintContour to SetBit kCannotRotate (bit 14) of the TView instead
of deleting the TView object. The kCannotRotate object is then tested
in THistPainter::ExecuteEvent.

Revision 225 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 16 07:37:11 2000 UTC (14 years, 7 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 120819 byte(s)
Diff to previous 128
cosmetic changes

Revision 128 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 13 09:52:04 2000 UTC (14 years, 7 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 120818 byte(s)
Diff to previous 86
- Many mods in TLego.cxx. Most internal variables changed from
  Float_t to Double_t.

- Many mods in THistPainter.cxx to reflect the numerous changes in TGraph,
  TVirtualPad, TView, TLego. Most internal variables changed from
  Float_t to Double_t.

-Hparam.h parameters changed from Float_t to Double_t.

Revision 86 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 7 07:29:42 2000 UTC (14 years, 7 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 120131 byte(s)
Diff to previous 47
Modify THistPainter::PaintPalette to use the Z axis attributes, including
the title to paint the axis on the palette.
Modify THistPainter::DistancetoPrimitive to detect the Zaxis when pointing
on the axis of the color palette.

Revision 47 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 29 06:19:21 2000 UTC (14 years, 7 months ago) by brun
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 119131 byte(s)
Diff to previous 3
//  29 May
- Add the following note in the TPave, TPaveLabel and TPaveText constructors:
    IMPORTANT NOTE:
    Because TPave objects (and objects deriving from TPave) have their
    master coordinate system in NDC, one cannot use the TBox functions
    SetX1,SetY1,SetX2,SetY2 to change the corner coordinates. One should use
    instead SetX1NDC, SetY1NDC, SetX2NDC, SetY2NDC.

   28 May
- Modify THistPainter::PaintStat and PaintStat2 to use the TLatex character #pm
  instead of +-

//     27 May
- Add new member functions:
    Int_t TVirtualTreePlayer::GetDimension()
    Int_t TTreePlayer::GetDimension()
  GetDimension returns the number of dimensions in the TTree::Draw expression.

- Add new function in TTree;
   void TTree::UnbinnedFit(const char *funcname ,const char *varexp, const char *selection="",Option_t *option=""
                       ,Int_t nentries=1000000000, Int_t firstentry=0);
   This function (origin Stephen Bailey) performs an unbinned fit to the
   variable(s) given in varexp.

- Remove unused data member fDimension from class TTree.

- Introduce support for "Virtuality" in TLeafObject.
  New data member fVirtual added and corresponding IsVirtual/SetVirtual functions.
  By default, fVirtual is kTRUE.
  This change allows new interesting possibilities in split mode. For example
  if a member is TShape *fShape, a real object may be now of any type
  derived from TShape (eg, TTUBE, TBRIK, etc).
  With the previous version, the fShape object had to be of the declared
  type TShape only.
  When writing a TLeafObject, the class name of the object is now written in
  the branch buffer by TLeafObject::FillBasket. When TLeafObject::ReadBasket
  is called, an instance of the real class is built and its Streamer function
  called.
  This change is backward compatible. Old files can still be processed.
  It is possible to set the virtuality for the branch to kFALSE via
  TLeafObject::SetVirtual. Setting the virtuality to kFALSE makes
  writing and reading faster and the file slightly smaller. In this case,
  a TLeafObject must be of the type declared only.

- New minor changes in TGaxis (Damir Buskulic) for date/time format
  in case the start time is not an integer value.

- Modify tutorial psexam.C to set the TPaveText TextFont to 61 instead of 62.
  Font precision 1 bypass the TLatex logic.

- Mods in TLatex to remove the special treatment for characters ' and ".
  Strings like l'#acute{e}toile  are now correctly processed.

- Fix a bug in TGraph::GetFunction. (thanks Damon Spayde). The test
    if (fFunctions)  return 0;  replaced by
    if (!fFunctions) return 0;

Revision 3 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: trunk/histpainter/src/THistPainter.cxx
File length: 119077 byte(s)
Copied from: branches/rdm/histpainter/src/THistPainter.cxx revision 2
Diff to previous 2
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

Revision 2 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: branches/rdm/histpainter/src/THistPainter.cxx
File length: 119077 byte(s)
Initial import of ROOT into CVS

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9