PARAMETERS.dimension = "3"
constrains += PARAMETERS.getConstainsSingle(XYDevMinMax)

PARAMETERS.dimension = "2"
constrains += PARAMETERS.getConstainsSingle(XYDevMinMax)

labelStrings = [r'$n = 2$', r'$n = 3$', r'$n = 5$', r'$n = 10$']
# labelStrings = [r'$n = 2$',r'$n = 3$',r'$n = 5$']

PARAMETERS.colors.reverse()
PARAMETERS.intervalColors.reverse()
labelStrings.reverse()

_PLOT.plotWithDeviationWithFillBetweenConstrained(
    labelStrings, PARAMETERS.colors, PARAMETERS.intervalColors,
    PARAMETERS.markers, figName, xlabel, ylabel, False, False, constrains, 1,
    1, PARAMETERS.figSize)
# _PLOT.plotWitMinMaxWithFillBetweenConstrained(labelStrings, PARAMETERS.colors, PARAMETERS.intervalColors, PARAMETERS.markers,
#                                    figName, xlabel, ylabel, False, logYScale,
#                                    constrains, 1, 1, PARAMETERS.figSize)
#
#
# _PLOT.plotWithDeviationWithFillBetweenConstrained(labelStrings, PARAMETERS.colors, PARAMETERS.intervalColors, PARAMETERS.markers,
#                                        figName, xlabel, ylabel, True, logYScale,
#                                        constrains, 1, 1, PARAMETERS.figSize)
#
# _PLOT.plotWithDeviationWithFillBetweenConstrained(labelStrings, PARAMETERS.colors, PARAMETERS.intervalColors, PARAMETERS.markers,
#                                        figName, xlabel, ylabel, True, True,
#                                        constrains, 1, 1, PARAMETERS.figSize)
#
# _PLOT.plotWithDeviationWithFillBetweenConstrained(labelStrings, PARAMETERS.colors, PARAMETERS.intervalColors, PARAMETERS.markers,
PARAMETERS.isSelfLearning = "true"
PARAMETERS.isLearnFromNeighbors = "true"
for varyingValue in varyingParamStringValues:
    constrains.append(
        PARAMETERS.getConstainsLabelsAreParamsWithVaryingParam2(
            varyingParamStrings, figVaryingParamString, XYDevMinMax,
            varyingValue))

varyingParamStringsFinal = []
for lbl in varyingParamStrings:
    varyingParamStringsFinal.append("AL " + lbl)
for lbl in varyingParamStrings:
    varyingParamStringsFinal.append("SL " + lbl)

_PLOT.plotWithDeviationWithFillBetweenConstrained(
    varyingParamStringsFinal, PARAMETERS.colors, PARAMETERS.intervalColors,
    PARAMETERS.markers, figName, xlabel, ylabel, False, logYScale, constrains,
    1, 100, PARAMETERS.figSize)
_PLOT.plotWitMinMaxWithFillBetweenConstrained(
    varyingParamStringsFinal, PARAMETERS.colors, PARAMETERS.intervalColors,
    PARAMETERS.markers, figName, xlabel, ylabel, False, logYScale, constrains,
    1, 100, PARAMETERS.figSize)
_PLOT.plotWithDeviationWithFillBetweenConstrained(
    varyingParamStringsFinal, PARAMETERS.colors, PARAMETERS.intervalColors,
    PARAMETERS.markers, figName, xlabel, ylabel, True, logYScale, constrains,
    1, 100, PARAMETERS.figSize)
_PLOT.plotWitMinMaxWithFillBetweenConstrained(
    varyingParamStringsFinal, PARAMETERS.colors, PARAMETERS.intervalColors,
    PARAMETERS.markers, figName, xlabel, ylabel, True, logYScale, constrains,
    1, 100, PARAMETERS.figSize)

# _PLOT.plotWithDeviation(labels, colors, markers, figName, xlabel, ylabel, logXScale, logYScale, xString, yString, deviationString, constrains, 1, 1)