def _testPlotModelHisto(self): ps = NTplotSet() # closes any previous plots outliersPerModel = { 0:2, 1:3 } valueList = outliersPerModel.values() modelCount = len(outliersPerModel.keys()) plot = NTplot( xLabel = 'Model', xRange = (0, modelCount), # yRange = (0, 5), yLabel = 'Outliers', hardcopySize= (600,300), # aspectRatio = 0.5 ) ps.addPlot(plot) plot.autoScaleYByValueList(valueList, startAtZero=True, useIntegerTickLabels=True ) plot.barChart( outliersPerModel.items(), 0.05, 0.95, attributes = boxAttributes(fillColor='green' ) ) ps.hardcopy( 'testPlotModelHisto.png' )