code: def plotDutyCycles(dutyCycle, filePath):
    
    _,entropy = binaryEntropy(dutyCycle)
    bins = np.linspace(0.0, 0.3, 200)
    plt.hist(dutyCycle, bins, alpha=0.5, label='All cols')
    plt.title("Histogram of duty cycles, entropy=" + str(float(entropy)))
    plt.xlabel("Duty cycle")
    plt.ylabel("Number of units")
    plt.savefig(filePath)
    plt.close()
docs: Create plot showing histogram of duty cycles
  
    :param dutyCycle: (torch tensor) the duty cycle of each unit
    :param filePath: (str) Full filename of image file