38 h = gPad.GetSelected();
42 if not isinstance( h, TH2 ):
45 gPad.GetCanvas().FeedbackMode( kTRUE )
51 uxmin, uxmax = gPad.GetUxmin(), gPad.GetUxmax()
52 uymin, uymax = gPad.GetUymin(), gPad.GetUymax()
53 pxmin, pxmax = gPad.XtoAbsPixel( uxmin ), gPad.XtoAbsPixel( uxmax )
54 pymin, pymax = gPad.YtoAbsPixel( uymin ), gPad.YtoAbsPixel( uymax )
57 gVirtualX.DrawLine( pxmin, self.
_old[1], pxmax, self.
_old[1] )
58 gVirtualX.DrawLine( self.
_old[0], pymin, self.
_old[0], pymax )
59 gVirtualX.DrawLine( pxmin, py, pxmax, py )
60 gVirtualX.DrawLine( px, pymin, px, pymax )
64 upx = gPad.AbsPixeltoX( px )
65 x = gPad.PadtoX( upx )
66 upy = gPad.AbsPixeltoY( py )
67 y = gPad.PadtoY( upy )
73 self.
_cX =
TCanvas(
'c2',
'Projection Canvas in X', 730, 10, 700, 500 )
78 self.
_cY =
TCanvas(
'c3',
'Projection Canvas in Y', 10, 550, 700, 500 )
88 proj = getattr( self,
'_c'+xy ).GetPrimitive(
'Projection '+xy )