# Newbie

**URL:** https://root-forum.cern.ch/c/newbie/26.md?page=91

[Latest](https://root-forum.cern.ch/latest.md) · [Categories](https://root-forum.cern.ch/categories.md) · [Tags](https://root-forum.cern.ch/tags.md)

**Page:** 92

---

## [Appearance of point on Graph](https://root-forum.cern.ch/t/appearance-of-point-on-graph/40657)

<div class="topic-metadata">

**Author:** [@hammiu](https://root-forum.cern.ch/u/hammiu)\
**Replies:** 2\
**Last updated:** [July 27, 2020, 4:11am UTC](https://root-forum.cern.ch/t/appearance-of-point-on-graph/40657 "2020-07-27T04:11:39Z")

</div>

I have a file with errors. I want to that on the canvas appear just Points, NOT line between points. I have an example. #include \<TGraph.h\> void alo() { double x\[3\] = {1.0, 2.0 ,3.0}; double y\[3\]= {2.1, 4.1, 6.…

---

## [TMultigraph with timeaxies](https://root-forum.cern.ch/t/tmultigraph-with-timeaxies/40636)

<div class="topic-metadata">

**Author:** [@AaronZilbermann](https://root-forum.cern.ch/u/AaronZilbermann)\
**Replies:** 1\
**Last updated:** [July 26, 2020, 4:29am UTC](https://root-forum.cern.ch/t/tmultigraph-with-timeaxies/40636 "2020-07-26T04:29:44Z")

</div>

Hi, rooters. I have some problem with Multigraph with timeaxies building. I have two sets of data : double time1\[52\]; // time points in hours double value1\[52\]; and double time2\[118\]; // time points in hours double …

---

## [I need to plot 2 histograms for multiplicity in a single plot. I need it in the form of a bar chart.( 1 histogram adjacent to another)](https://root-forum.cern.ch/t/i-need-to-plot-2-histograms-for-multiplicity-in-a-single-plot-i-need-it-in-the-form-of-a-bar-chart-1-histogram-adjacent-to-another/40575)

<div class="topic-metadata">

**Author:** [@Liam\_hayden](https://root-forum.cern.ch/u/Liam_hayden)\
**Replies:** 2\
**Last updated:** [July 25, 2020, 7:45pm UTC](https://root-forum.cern.ch/t/i-need-to-plot-2-histograms-for-multiplicity-in-a-single-plot-i-need-it-in-the-form-of-a-bar-chart-1-histogram-adjacent-to-another/40575 "2020-07-25T19:45:01Z")

</div>

\_ROOT Version:\_6.20/04 So I have already consulted the page on vertical bar charts. But it’s very confusing. Say h1 and h2 are my 2 histograms. I gave my command as below, but nothing changed. The second histogram was s…

---

## [Why Are The Axis Numbers Cutting off?](https://root-forum.cern.ch/t/why-are-the-axis-numbers-cutting-off/40628)

<div class="topic-metadata">

**Author:** [@Bassam](https://root-forum.cern.ch/u/Bassam)\
**Replies:** 2\
**Last updated:** [July 25, 2020, 4:23pm UTC](https://root-forum.cern.ch/t/why-are-the-axis-numbers-cutting-off/40628 "2020-07-25T16:23:03Z")

</div>

Dear experts, I am trying to figure out why the numbers on my histogram axes are cutting off. I tried to use TGaxis::SetMaxDigits(2); to prevent that from happening, but that did not really help. The 10 on the top is st…

---

## [Double Maxwellian Fit](https://root-forum.cern.ch/t/double-maxwellian-fit/40612)

<div class="topic-metadata">

**Author:** [@Elisabetta\_Di\_Franco](https://root-forum.cern.ch/u/Elisabetta_Di_Franco)\
**Replies:** 2\
**Last updated:** [July 24, 2020, 6:59pm UTC](https://root-forum.cern.ch/t/double-maxwellian-fit/40612 "2020-07-24T18:59:17Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version:6.18 \_Platform: Ubuntu \_Compiler: Hi everyone, I have some trouble with the double maxwellian fit. I have some histogram in root …

---

## [Run twice a macro with vectors of defined size](https://root-forum.cern.ch/t/run-twice-a-macro-with-vectors-of-defined-size/40608)

<div class="topic-metadata">

**Author:** [@fra\_root](https://root-forum.cern.ch/u/fra_root)\
**Replies:** 4\
**Last updated:** [July 24, 2020, 12:51pm UTC](https://root-forum.cern.ch/t/run-twice-a-macro-with-vectors-of-defined-size/40608 "2020-07-24T12:51:41Z")

</div>

Hello, I have a problem executing the macro attached, using vectors of defined size: #include \<vector\> int test(){ vector \<int\> myvec(70); cout \<\<"test" \<\<endl; return 0; } It runs ones correctly with .x test.C,…

---

## [Scatter plot matrix from TTree](https://root-forum.cern.ch/t/scatter-plot-matrix-from-ttree/40570)

<div class="topic-metadata">

**Author:** [@lopez](https://root-forum.cern.ch/u/lopez)\
**Replies:** 1\
**Last updated:** [July 24, 2020, 7:26am UTC](https://root-forum.cern.ch/t/scatter-plot-matrix-from-ttree/40570 "2020-07-24T07:26:30Z")

</div>

Hi everyone, is there a way to automatically produce a “scatter plot matrix” from a TTree with ROOT? Something like this: https://seaborn.pydata.org/examples/scatterplot\_matrix.html Of course I can do that by hand divi…

---

## [Gaussian Fit in a Histogram](https://root-forum.cern.ch/t/gaussian-fit-in-a-histogram/40593)

<div class="topic-metadata">

**Author:** [@TheScientist](https://root-forum.cern.ch/u/TheScientist)\
**Replies:** 1\
**Last updated:** [July 24, 2020, 7:23am UTC](https://root-forum.cern.ch/t/gaussian-fit-in-a-histogram/40593 "2020-07-24T07:23:47Z")

</div>

I am trying to put Gaussian fit in my histogram. I tried several method, but was unable to do it. Here is my code. TTree t; t.ReadFile("NP02\_HVCurrent\_10-09-2019\_11-09-2019.txt", "Unix\_Time:Current"); TH1F h1("Current\_H…

---

## [Fit with a polynomial](https://root-forum.cern.ch/t/fit-with-a-polynomial/40576)

<div class="topic-metadata">

**Author:** [@Newbie](https://root-forum.cern.ch/u/Newbie)\
**Replies:** 3\
**Last updated:** [July 23, 2020, 9:50am UTC](https://root-forum.cern.ch/t/fit-with-a-polynomial/40576 "2020-07-23T09:50:43Z")

</div>

Dear, I want to fit the following ratio plot with a polynomial, However, only the first order is working, but it doesn’t look linear at all Are there tips to make higher-order polynomial work? could it be the binnin…

---

## [Nested structure of custom classes](https://root-forum.cern.ch/t/nested-structure-of-custom-classes/40560)

<div class="topic-metadata">

**Author:** [@Gramotey](https://root-forum.cern.ch/u/Gramotey)\
**Replies:** 2\
**Last updated:** [July 23, 2020, 7:36am UTC](https://root-forum.cern.ch/t/nested-structure-of-custom-classes/40560 "2020-07-23T07:36:53Z")

</div>

Dear all - Thank you for your past help… as I progress, I get stuck on the next complexity level :slight\_smile: Problem. I would like to record the following structure: I have TMyEvent class that holds TCloneArrays…

---

## [Trouble Displaying fit statistics](https://root-forum.cern.ch/t/trouble-displaying-fit-statistics/40562)

<div class="topic-metadata">

**Author:** [@Edward\_Finkelstein](https://root-forum.cern.ch/u/Edward_Finkelstein)\
**Replies:** 2\
**Last updated:** [July 23, 2020, 1:39am UTC](https://root-forum.cern.ch/t/trouble-displaying-fit-statistics/40562 "2020-07-23T01:39:27Z")

</div>

Hello, I am trying to display the fit statistics for a fitted graph using gStyle-\>SetOptFit(1111);, but for some reason, the fit stats are not displaying on the graph. test.cxx (1.5 KB) data.txt (59 Bytes) ROOT Versi…

---

## [Plotting difference between pseudo-data and fit on the same plot](https://root-forum.cern.ch/t/plotting-difference-between-pseudo-data-and-fit-on-the-same-plot/40521)

<div class="topic-metadata">

**Author:** [@Edward\_Finkelstein](https://root-forum.cern.ch/u/Edward_Finkelstein)\
**Replies:** 7\
**Last updated:** [July 22, 2020, 11:30pm UTC](https://root-forum.cern.ch/t/plotting-difference-between-pseudo-data-and-fit-on-the-same-plot/40521 "2020-07-22T23:30:32Z")

</div>

Hello, I am trying to plot the pseudo-data minus the fit for a 5-parameter function. I have done this before with actual data, but for some reason, this time I am not getting a graph that shows the difference on the sam…

---

## [Fit on a random generated dataset](https://root-forum.cern.ch/t/fit-on-a-random-generated-dataset/40565)

<div class="topic-metadata">

**Author:** [@Lorenzo\_Sostero](https://root-forum.cern.ch/u/Lorenzo_Sostero)\
**Replies:** 11\
**Last updated:** [July 22, 2020, 2:47pm UTC](https://root-forum.cern.ch/t/fit-on-a-random-generated-dataset/40565 "2020-07-22T14:47:02Z")

</div>

Hello, I am trying to fit an histogram I have previously random generated using a TF1 function (data-\>Fill(function-\>GetRandom()). To run the fit, I use as model the same type of function. For example, suppose I genera…

---

## [Installation Permission Error](https://root-forum.cern.ch/t/installation-permission-error/40340)

<div class="topic-metadata">

**Author:** [@trevajrussell](https://root-forum.cern.ch/u/trevajrussell)\
**Replies:** 8\
**Last updated:** [July 22, 2020, 12:05pm UTC](https://root-forum.cern.ch/t/installation-permission-error/40340 "2020-07-22T12:05:01Z")

</div>

I’m trying to build ROOT and got this error and am not sure how to fix it. I am on a mac with catalina OS. (Also I tried installing the binary distribution and it did not work) Scanning dependencies of target copymodule…

---

## [Redundant argument in TGraphPolar?](https://root-forum.cern.ch/t/redundant-argument-in-tgraphpolar/40368)

<div class="topic-metadata">

**Author:** [@leungwingfung](https://root-forum.cern.ch/u/leungwingfung)\
**Replies:** 2\
**Last updated:** [July 22, 2020, 11:22am UTC](https://root-forum.cern.ch/t/redundant-argument-in-tgraphpolar/40368 "2020-07-22T11:22:21Z")

</div>

Hi everyone, I have been learning ROOT following this guide and am confused with one of the arguments used in TGraphPolar in Chapter 4.2 Polar Graphs. The example code in the guide is 1 // Builds a polar graph in a squ…

---

## [Likelihood fit of y(x)](https://root-forum.cern.ch/t/likelihood-fit-of-y-x/40518)

<div class="topic-metadata">

**Author:** [@lilina](https://root-forum.cern.ch/u/lilina)\
**Replies:** 6\
**Last updated:** [July 21, 2020, 4:12pm UTC](https://root-forum.cern.ch/t/likelihood-fit-of-y-x/40518 "2020-07-21T16:12:42Z")

</div>

Hi, I am sorry for my question. Is it possible to make a Likelihood fit of the variables y vs x when the y axis does not represent counts? Thanks a lot!

---

## [Installing ROOOT with Conda & Delphes](https://root-forum.cern.ch/t/installing-rooot-with-conda-delphes/40487)

<div class="topic-metadata">

**Author:** [@surrutiaquir](https://root-forum.cern.ch/u/surrutiaquir)\
**Replies:** 3\
**Last updated:** [July 21, 2020, 3:01pm UTC](https://root-forum.cern.ch/t/installing-rooot-with-conda-delphes/40487 "2020-07-21T15:01:43Z")

</div>

Hi, I have installed ROOT using Conda (Root :: Anaconda.org) and I’m getting an error when I try to compile Delphes: \>\> Generating tmp/classes/ClassesDict.cc In file included from input\_line\_14:1: In file included …

---

## [Histogram Normalizationnb to single plot](https://root-forum.cern.ch/t/histogram-normalizationnb-to-single-plot/40401)

<div class="topic-metadata">

**Author:** [@Afzaal786](https://root-forum.cern.ch/u/Afzaal786)\
**Replies:** 14\
**Last updated:** [July 21, 2020, 2:14pm UTC](https://root-forum.cern.ch/t/histogram-normalizationnb-to-single-plot/40401 "2020-07-21T14:14:11Z")

</div>

Hi, I am quite new at ROOT and trying to normalize two histograms in single plot but don’t know how to do it. I have attached the two selected histograms that i want to normalize. Please suggest possible solutions. Than…

---

## [Macros files missing for Primer tutorial](https://root-forum.cern.ch/t/macros-files-missing-for-primer-tutorial/40372)

<div class="topic-metadata">

**Author:** [@fsili](https://root-forum.cern.ch/u/fsili)\
**Replies:** 5\
**Last updated:** [July 21, 2020, 1:29pm UTC](https://root-forum.cern.ch/t/macros-files-missing-for-primer-tutorial/40372 "2020-07-21T13:29:20Z")

</div>

Hi there! I recently installed ROOT and I’ve been going through the first examples in ROOT Primer. However, there, they reference a lot of text files, such as ExampleData.txt, expo.dat or macro2\_input\_expected.txt, but…

---

## [Number of bins for histogram being filled in real-time (pyroot)](https://root-forum.cern.ch/t/number-of-bins-for-histogram-being-filled-in-real-time-pyroot/40533)

<div class="topic-metadata">

**Author:** [@paipai](https://root-forum.cern.ch/u/paipai)\
**Replies:** 2\
**Last updated:** [July 21, 2020, 9:49am UTC](https://root-forum.cern.ch/t/number-of-bins-for-histogram-being-filled-in-real-time-pyroot/40533 "2020-07-21T09:49:11Z")

</div>

Hi! I have created a program which reads a file, which is constantly updated with new entries/lines - in real time. The file gets written because of a measurement process which takes an arbitrary amount of time. So basi…

---

## [TPaveText not drawn in .png but drawn in .pdf](https://root-forum.cern.ch/t/tpavetext-not-drawn-in-png-but-drawn-in-pdf/40526)

<div class="topic-metadata">

**Author:** [@jsdancu](https://root-forum.cern.ch/u/jsdancu)\
**Replies:** 2\
**Last updated:** [July 21, 2020, 7:54am UTC](https://root-forum.cern.ch/t/tpavetext-not-drawn-in-png-but-drawn-in-pdf/40526 "2020-07-21T07:54:42Z")

</div>

Hello, I am drawing several TPaveText objects on a TCanvas which I then save (canvas.SaveAs()) in both pdf and png formats. However, these objects are only drawn in the pdf version. Does anyone know why it might be the …

---

## [Passing symbol from interpreter to library, workaround?](https://root-forum.cern.ch/t/passing-symbol-from-interpreter-to-library-workaround/40470)

<div class="topic-metadata">

**Author:** [@mfglinux\_gmail](https://root-forum.cern.ch/u/mfglinux_gmail)\
**Replies:** 3\
**Last updated:** [July 20, 2020, 8:45pm UTC](https://root-forum.cern.ch/t/passing-symbol-from-interpreter-to-library-workaround/40470 "2020-07-20T20:45:56Z")

</div>

Hello I am trying to use cling to compile some classes which have an extern global variable inside declared as: extern Globals \*gl ; The Globals class compiles and I can instantiate: root\[2\] .L Globals.cpp++ root\[3\]…

---

## [TEveTrackPropagator in JSROOT](https://root-forum.cern.ch/t/tevetrackpropagator-in-jsroot/40514)

<div class="topic-metadata">

**Author:** [@nowakowp](https://root-forum.cern.ch/u/nowakowp)\
**Replies:** 2\
**Last updated:** [July 20, 2020, 8:10pm UTC](https://root-forum.cern.ch/t/tevetrackpropagator-in-jsroot/40514 "2020-07-20T20:10:17Z")

</div>

Dear JSROOT developers, I’m trying to load tracks from a VSD file (something very similar to what this LoadEsdTracks function does https://github.com/AliceO2Group/AliceO2/blob/dev/EventVisualisation/Detectors/src/Data…

---

## [Normalize a histogram](https://root-forum.cern.ch/t/normalize-a-histogram/40485)

<div class="topic-metadata">

**Author:** [@iosi22](https://root-forum.cern.ch/u/iosi22)\
**Replies:** 4\
**Last updated:** [July 20, 2020, 4:48pm UTC](https://root-forum.cern.ch/t/normalize-a-histogram/40485 "2020-07-20T16:48:52Z")

</div>

I am trying to normalize this histogram. I’ve seen some examples but none of them seems to work. newcGs.C (15.4 KB)

---

## [What is the default bin width for Branch of tree](https://root-forum.cern.ch/t/what-is-the-default-bin-width-for-branch-of-tree/40520)

<div class="topic-metadata">

**Author:** [@Tingting](https://root-forum.cern.ch/u/Tingting)\
**Replies:** 1\
**Last updated:** [July 20, 2020, 1:53pm UTC](https://root-forum.cern.ch/t/what-is-the-default-bin-width-for-branch-of-tree/40520 "2020-07-20T13:53:53Z")

</div>

Dear Root Users，developer，and friends： I have a question we have filled different variables in tree, When we use “TBrowser” view the distribution of one variable ，What is the default bin width for this Branch of tree？H…

---

## [TChain: Adding files by reading filenames in a text file](https://root-forum.cern.ch/t/tchain-adding-files-by-reading-filenames-in-a-text-file/40497)

<div class="topic-metadata">

**Author:** [@chikin\_tam](https://root-forum.cern.ch/u/chikin_tam)\
**Replies:** 6\
**Last updated:** [July 19, 2020, 2:17pm UTC](https://root-forum.cern.ch/t/tchain-adding-files-by-reading-filenames-in-a-text-file/40497 "2020-07-19T14:17:03Z")

</div>

Dear root experts, I am trying to use a while loop to read filenames in a text file and then add them to a TChain. However, it seems my code fails to add all the root files to the chain. Here is part of my code: I us…

---

## [Fitting 5p function to pseudodata](https://root-forum.cern.ch/t/fitting-5p-function-to-pseudodata/40507)

<div class="topic-metadata">

**Author:** [@Edward\_Finkelstein](https://root-forum.cern.ch/u/Edward_Finkelstein)\
**Replies:** 2\
**Last updated:** [July 19, 2020, 9:35am UTC](https://root-forum.cern.ch/t/fitting-5p-function-to-pseudodata/40507 "2020-07-19T09:35:23Z")

</div>

Hello, I am trying to fit a five parameter function to pseudo data, but for some reason I get the warning Warning in \<ROOT::Math::ROOT::Math::GausIntegrator\>: Failed to reach the desired tolerance ; maxtol = 1e-09 I t…

---

## [Drawing THStack with "pfc" option appears differently on server](https://root-forum.cern.ch/t/drawing-thstack-with-pfc-option-appears-differently-on-server/40469)

<div class="topic-metadata">

**Author:** [@jemarq04](https://root-forum.cern.ch/u/jemarq04)\
**Replies:** 4\
**Last updated:** [July 18, 2020, 4:13pm UTC](https://root-forum.cern.ch/t/drawing-thstack-with-pfc-option-appears-differently-on-server/40469 "2020-07-18T16:13:36Z")

</div>

I am trying to draw a THStack on a server I’m working on, but when I use the “pfc” command it just smooths out the histogram and does not use any colors of any sort. However, when I draw the same stack on my local machin…

---

## [Using PyRoot on Windows 10](https://root-forum.cern.ch/t/using-pyroot-on-windows-10/40481)

<div class="topic-metadata">

**Author:** [@henrysp](https://root-forum.cern.ch/u/henrysp)\
**Replies:** 1\
**Last updated:** [July 17, 2020, 7:24pm UTC](https://root-forum.cern.ch/t/using-pyroot-on-windows-10/40481 "2020-07-17T19:24:55Z")

</div>

Hello, I would like to use PyRoot on my Windows 10 laptop but I can’t get the installation done. I found an other post in this forum about PyRoot and Windows in which someone wrote that there is no version of PyRoot wo…

---

## [Changing graph titles through a loop](https://root-forum.cern.ch/t/changing-graph-titles-through-a-loop/40451)

<div class="topic-metadata">

**Author:** [@boyera1](https://root-forum.cern.ch/u/boyera1)\
**Replies:** 1\
**Last updated:** [July 16, 2020, 6:27am UTC](https://root-forum.cern.ch/t/changing-graph-titles-through-a-loop/40451 "2020-07-16T06:27:10Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.20/06 Platform: MacOSX, Catalina 10.15.5 Compiler: Not Provided Hello all, I have been working with ROOT since about late May.…

[Previous page](https://root-forum.cern.ch/c/newbie/26.md?page=90)

[Next page](https://root-forum.cern.ch/c/newbie/26.md?page=92)
