You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|hist000_TH1_first.C||Hello World example for TH1.|
68
-
|hist001_TH1_fillrandom.C|hist001_TH1_fillrandom.py|Fill a 1D histogram with random values using predefined functions.|
69
-
|hist002_TH1_fillrandom_userfunc.C||Fill a 1D histogram from a user-defined parametric function.|
70
-
|hist003_TH1_draw.C||Draw a 1D histogram to a canva.|
71
-
|hist004_TH1_labels.C||1D histograms with alphanumeric labels.|
72
-
|hist005_TH1_palettecolor.C||Palette coloring for TH1.|
73
-
|hist006_TH1_bar_charts.C||Draw 1D histograms as bar charts.|
74
-
|hist007_TH1_liveupdate.C|hist007_TH1_liveupdate.py|Histograms filled and drawn in a loop.|
75
-
|hist008_TH1_zoom.C||Change the range of an axis in a Histogram.|
76
-
|hist009_TH1_normalize.C||Normalizing a Histogram.|
77
-
|hist010_TH1_two_scales.C|hist010_TH1_two_scales.py|Draw two histograms on one canva using different y-axis scales.|
78
-
|hist011_TH1_legend_autoplaced.C||Automatic placing of the legend.|
79
-
|hist012_TH1_hksimple.C||Dynamic filling of TH1K histograms.|
80
-
|hist013_TH1_rebin.C||Create a variable bin-width histogram and change bin sizes.|
81
-
|hist014_TH1_cumulative.C||Illustrate use of the TH1::GetCumulative method.|
82
-
|hist015_TH1_read_and_draw.C|hist015_TH1_read_and_draw.py|Read a 1D histogram from a ROOT File and draw it.|
83
-
|hist016_TH1_different_scales_canvas.C||Draw two histograms on one canva using different y-axis scales.|
84
-
|hist017_TH1_smooth.C||Histogram smoothing.|
85
-
|hist060_TH1_stats.C||Edit statistics box.|
86
-
|hist061_TH1_timeonaxis.C||Use a time axis as an x axis.|
87
-
|hist062_TH1_timeonaxis2.C||Use a time axis as an x axis and use a time offset.|
88
-
|hist063_TH1_seism.C||Use a time axis as an x axis to show sine signal as a strip chart.|
89
-
|hist101_TH1_autobinning.C||Fill multiple histograms with different functions and automatic binning.|
63
+
## TH1 Histograms
64
+
The examples below showcase the same functionalities through 3 different implementations: the first column is a C++ macro, the second column corresponds to the Python implementation, and the third column is a Python implementation showcasing the newest Pythonizations available in ROOT.
| hist000_TH1_first.C | hist000_TH1_first.py | hist000_TH1_first_uhi.py |Hello World example for TH1. |
72
+
| hist001_TH1_fillrandom.C | hist001_TH1_fillrandom.py | hist001_TH1_fillrandom_uhi.py | Fill a 1D histogram with random values using predefined functions. |
73
+
| hist002_TH1_fillrandom_userfunc.C | hist002_TH1_fillrandom_userfunc.py |hist002_TH1_fillrandom_userfunc_uhi.py| Fill a 1D histogram from a user-defined parametric function. |
74
+
| hist003_TH1_draw.C | hist003_TH1_draw.py | hist003_TH1_draw_uhi.py|Draw a 1D histogram to a canvas. |
75
+
| hist004_TH1_labels.C ||| 1D histograms with alphanumeric labels. |
76
+
| hist005_TH1_palettecolor.C ||| Palette coloring for TH1. |
77
+
| hist006_TH1_bar_charts.C ||| Draw 1D histograms as bar charts. |
78
+
| hist007_TH1_liveupdate.C | hist007_TH1_liveupdate.py |hist007_TH1_liveupdate_uhi.py | Histograms filled and drawn in a loop. |
79
+
| hist008_TH1_zoom.C ||| Change the range of an axis in a Histogram. |
80
+
| hist009_TH1_normalize.C ||| Normalizing a Histogram. |
81
+
| hist010_TH1_two_scales.C | hist010_TH1_two_scales.py | hist010_TH1_two_scales_uhi.py|Draw two histograms on one canvas using different y-axis scales. |
82
+
| hist011_TH1_legend_autoplaced.C ||| Automatic placing of the legend. |
83
+
| hist012_TH1_hksimple.C ||| Dynamic filling of TH1K histograms. |
84
+
| hist013_TH1_rebin.C ||| Create a variable bin-width histogram and change bin sizes. |
85
+
| hist014_TH1_cumulative.C ||| Illustrate use of the TH1::GetCumulative method. |
86
+
| hist015_TH1_read_and_draw.C | hist015_TH1_read_and_draw.py | hist015_TH1_read_and_draw_uhi.py|Read a 1D histogram from a ROOT File and draw it. |
87
+
| hist016_TH1_different_scales_canvas.C ||| Draw two histograms on one canvas using different y-axis scales. |
88
+
| hist017_TH1_smooth.C ||| Histogram smoothing. |
89
+
| hist060_TH1_stats.C ||| Edit statistics box. |
90
+
| hist061_TH1_timeonaxis.C ||| Use a time axis as an x axis. |
91
+
| hist062_TH1_timeonaxis2.C ||| Use a time axis as an x axis and use a time offset. |
92
+
| hist063_TH1_seism.C ||| Use a time axis as an x axis to show sine signal as a strip chart. |
93
+
| hist101_TH1_autobinning.C ||| Fill multiple histograms with different functions and automatic binning. |
90
94
91
95
\anchor th2
92
96
@@ -125,14 +129,16 @@ These examples shows some of the ratioplots
|hist057_TExec_th1.C |||Echo object at mouse position.|
185
+
|hist058_TExec_th2.C |||Echo object at mouse position and show a graphics line.|
186
+
|hist105_TExec_dynamic_slice.C |hist105_TExec_dynamic_slice.py |hist105_TExec_dynamic_slice_uhi.py|Show the slice of a TH2 following the mouse position.|
0 commit comments