from paida import * analysisFactory = IAnalysisFactory.create() treeFactory = analysisFactory.createTreeFactory() tree = treeFactory.create() ### Creating clouds and histograms. histogramFactory = analysisFactory.createHistogramFactory(tree) c3d = histogramFactory.createCloud3D('unlimited', 'Unlimited') ### Filling with gaussian. import random r = random.Random() for i in range(2000): c3d.fill(r.gauss(0.0, 7.0), r.gauss(0.0, 7.0), r.gauss(0.0, 7.0)) ### Plotting the histogram. plotterFactory = analysisFactory.createPlotterFactory() plotter = plotterFactory.create('PAIDA Plotter') plotter.createRegions(1, 2) region = plotter.region(0) region.setTitle('histogram format') region.style().setParameter('showTitle', 'true') region.style().dataStyle().setParameter('cloud3DFormat', 'histogram') region.plot(c3d, 'nBinsX=10;nBinsY=10;nBinsZ=10') region = plotter.region(1) region.setTitle('scatter format') region.style().setParameter('showTitle', 'true') region.style().dataStyle().setParameter('cloud3DFormat', 'scatter') region.plot(c3d) ### Wait. dummy = raw_input('Hit any key.')