# # create full path to the file in case this script is not run from this # directory # import sys full_path = sys.path[0] + '/' + 'aptuple.tnt' nt = ntc.createNTuple(full_path) from hippo import Display # Create a histogram hist = Display("Histogram", nt, ('Age', )) canvas.addDisplay(hist) # Overlay another histogram. hist.addDataRep('Histogram', nt, ['Service']) # # Set the line style and color # reps = hist.getDataReps() from hippo import Line print "The available line styles are ..." print Line.values print "" try: reps[1].set(Line.dash) except RuntimeError, detail: print detail print "done"
# # create full path to the file in case this script is not run from this # directory # import sys full_path = sys.path[0] + '/' + 'aptuple.tnt' nt = ntc.createNTuple ( full_path ) from hippo import Display # Create a histogram hist = Display ("Histogram", nt, ('Age', ) ) canvas.addDisplay( hist ) # Overlay another histogram. hist.addDataRep ( 'Histogram', nt, ['Service'] ) # # Set the line style and color # reps = hist.getDataReps () from hippo import Line print "The available line styles are ..." print Line.values print "" try : reps[1].set ( Line.dash ) except RuntimeError, detail : print detail print "done"