ax.set_xticks([0,1])
ax.set_xticklabels(['Five\nN={}'.format(len(dataFive)),
                    'Six\nN={}'.format(len(dataSix))])
extraplots.boxoff(ax)

#0-1
yMin = 0
yMax = 2
yStars = [yMax*1.1, yMax*1.2]
yStarHeight = (yMax-yMin)*0.05
starGapFactor = 0.1
fontSizeStars = 9
zVal, pVal = stats.mannwhitneyu(dataFive, dataSix)
if pVal < 0.05:
    extraplots.new_significance_stars([0, 0.9], yStars[0], yStarHeight, starMarker='*',
                                      fontSize=fontSizeStars, gapFactor=starGapFactor,
                                      ax=ax)
else:
    extraplots.new_significance_stars([0, 0.9], yStars[0], yStarHeight, starMarker='n.s.',
                                      fontSize=fontSizeStars, gapFactor=starGapFactor,
                                      ax=ax)

# #1-2
# zVal, pVal = stats.mannwhitneyu(dataSix, dataFarSix)
# if pVal < 0.05:
#     extraplots.new_significance_stars([1.1, 2], yStars[0], yStarHeight, starMarker='*',
#                                       fontSize=fontSizeStars, gapFactor=starGapFactor,
#                                       ax=ax)
# else:
#     extraplots.new_significance_stars([1.1, 2], yStars[0], yStarHeight, starMarker='n.s.',
#                                       fontSize=fontSizeStars, gapFactor=starGapFactor*1.5,
    extraplots.boxoff(axBar)

    axBar.legend((peakPlot, WNPlot), ('peak', 'WN'),
                 loc='upper left',
                 frameon=False,
                 fontsize=fontSizeLabels,
                 handlelength=0.6)
    plt.ylabel('Change in firing rate')
    plt.xlim(-0.1, 1.9)

    yLims = (0, 3.5)
    plt.ylim(yLims)
    extraplots.new_significance_stars([width / 2, 3 * width / 2],
                                      yLims[1] * 0.5,
                                      yLims[1] * 0.03,
                                      starMarker='n.s.',
                                      fontSize=10,
                                      gapFactor=0.3)
    extraplots.significance_stars([1 + width / 2, 1 + 3 * width / 2],
                                  yLims[1] * 0.92,
                                  yLims[1] * 0.03,
                                  gapFactor=0.2)

    axBar.annotate(panelLabel,
                   xy=(labelPosX[1], labelPosY[1]),
                   xycoords='figure fraction',
                   fontsize=fontSizePanel,
                   fontweight='bold')

if SAVE_FIGURE:
    extraplots.save_figure(figFilename, figFormat, figSize, outputDir)