ROOT Version: 6.08.06-c8fb4
Platform: lyplus machines
Dear ROOT experts,
my issue is that I want to draw an plot with horizontal bars.
I have already started with TH1D and no solution has been found
I have been told to use TGraph and I have done this simple example
import ROOT as r import math from array import array n=20 x, y = array( 'd' ), array( 'd' ) for i in range(n): x.append(i*0.1) y.append(10.*math.sin(x[i]+0.2)) gr1 = r.TGraph(n,x,y) gr1.Draw("AB")
and with this code I obtain this plot
then I have to switch X and Y axis
gr1 = r.TGraph(n,y,x)
and I get
this is clearly not what I want.
What I want is this (I have done a rotate right of the pdf of the 1st plot)
How can I achieve this please ???