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
Copy file name to clipboardexpand all lines: README.md
+25-2
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Python version 3 is required (tested on 3.9).
8
8
from fast import *
9
9
h = get(_file0, "histoX")
10
10
h = get(_file0, "histoY")
11
-
cnv() # a canvas (can be skipped)
11
+
cnv() # a canvas
12
12
frame((10, 0, 10), (10, 0, 100)) # define axes ranges (not needed if histograms have reasonable ranges already), but often convenient to use
13
13
axis("size [mm]", "count") # label axes (not needed if original histograms have reasonably named axes)
14
14
@@ -50,7 +50,7 @@ In addition they key can be supplemented by move/resize directives that are:
50
50
*`n` to make object narrower and
51
51
*`s` shorter
52
52
*`t` taller.
53
-
Capital move directives move by 3 quants, i..e LU is the same as llluuu.
53
+
Capital move directives move by 3 quants, i.e. LU is the same as llluuu.
54
54
# piroot
55
55
Is a wrapper of python + ROOT that allows to execute following comamnds:
56
56
```
@@ -103,6 +103,29 @@ Some more examples of how to automate plots making can be found in scripts/examp
103
103
*Beware, that there is very limited checks of command line options.*
104
104
That is, it will not catch typos for you!
105
105
106
+
# Included scripts
107
+
There is couple of "small" scripts included that are ready to be used for making quite a diverse set of plots. First of all `draw.py` can be used to draw same histogram from multiple files, multiple hitograms from one file and nearly all settings of the plot can be customised from command line. See the source code for all the options.
108
+
109
+
A simpler version, `simple.py` just good for signle histogram an only af few customizations available through command line.
110
+
111
+
A useful script called `content.py` can be used to list content of the ROOT file like this:
112
+
``sh
113
+
piroot -q file.root content.py
114
+
``
115
+
116
+
For interactive exploration of the ROOT file with python the `browse.py` script is provided. It repackages ROOT file as full fledged python object. An example of interactive discovery of histogram and plotting is shown below.
0 commit comments