Skip to content
Snippets Groups Projects
Commit bca639fa authored by maxgalli's avatar maxgalli Committed by Enric Tejedor
Browse files

[Exp PyROOT] Fixed 'tutorial-math-Legendre-py' test: the argument passed

to the AddEntry function was changed according to the fact that the

None -> null pointer conversion is no longer implemented in Cppyy
parent d16edb15
No related branches found
No related tags found
No related merge requests found
...@@ -483,7 +483,6 @@ if(ROOT_python_FOUND) ...@@ -483,7 +483,6 @@ if(ROOT_python_FOUND)
tutorial-dataframe-df016_vecOps-py tutorial-dataframe-df016_vecOps-py
tutorial-dataframe-df017_vecOpsHEP-py tutorial-dataframe-df017_vecOpsHEP-py
tutorial-dataframe-df102_NanoAODDimuonAnalysis-py tutorial-dataframe-df102_NanoAODDimuonAnalysis-py
tutorial-math-Legendre-py
tutorial-pyroot-benchmarks-py tutorial-pyroot-benchmarks-py
tutorial-pyroot-geometry-py tutorial-pyroot-geometry-py
tutorial-pyroot-na49view-py tutorial-pyroot-na49view-py
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
## \macro_image ## \macro_image
## \macro_code ## \macro_code
## ##
## \author Alberto Ferro ## \author Alberto Ferro, Massimiliano Galli
import ROOT import ROOT
...@@ -28,11 +28,14 @@ for nu in range(5): ...@@ -28,11 +28,14 @@ for nu in range(5):
L[0].SetMaximum(1) L[0].SetMaximum(1)
L[0].SetMinimum(-1) L[0].SetMinimum(-1)
L[0].SetTitle("Legendre polynomials") L[0].SetTitle("Legendre polynomials")
leg.AddEntry(L[0].Draw(), " L_{0}(x)", "l")
leg.AddEntry(L[1].Draw("same"), " L_{1}(x)", "l") for idx, val in enumerate(L):
leg.AddEntry(L[2].Draw("same"), " L_{2}(x)", "l") leg.AddEntry(val, " L_{}(x)".format(idx), "l")
leg.AddEntry(L[3].Draw("same"), " L_{3}(x)", "l") if idx == 0:
leg.AddEntry(L[4].Draw("same"), " L_{4}(x)", "l") val.Draw()
leg.Draw() else:
val.Draw("same")
leg.Draw("same")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment