def showHistogram(polyData, arrayName, numberOfBins=100):

    import matplotlib.pyplot as plt

    x = vnp.getNumpyFromVtk(polyData, arrayName)
    hist, bins = np.histogram(x, bins=numberOfBins)
    width = 0.7 * (bins[1] - bins[0])
    center = (bins[:-1] + bins[1:]) / 2
    plt.bar(center, hist, align='center', width=width)
    plt.show()

    return bins[np.argmax(hist)] + 2.0/(bins[1] - bins[0])
dataset/ETHPy150Open RobotLocomotion/director/src/python/director/segmentation.py/showHistogram/swapped operands of `/`