In [1]:
import ROOT
In [2]:
c = ROOT.TCanvas()
The simple graph
In [3]:
g = ROOT.TGraph()
for i in range(5): g.SetPoint(i,i,i*i)
g.Draw("APL")
c.Draw()
Change marker style, colour as well as line colour and thickness. Make the plot interactive. Re-draw the plot and interact with it!
In [1]:
# Here your code
Now we set the title and the grid on the canvas.
In [2]:
# Here your code
We will now add the symbol of the Calcium isotope
In [3]:
# Here your code
Redraw using a Y axis in log scale.
In [4]:
# Here your code