Пример #1
0
figName = PARAMETERS.figPrefix + yString + "_DepOn_" + xString + "-" + PARAMETERS.getFigName(
) + figEndName
print(figName)

constrains = PARAMETERS.getConstains(labels, figVaryingParamString)

_PLOT.plotWithDeviationWithFillBetween(labelStrings, PARAMETERS.colors,
                                       PARAMETERS.intervalColors,
                                       PARAMETERS.markers, figName, xlabel,
                                       ylabel, False, logYScale, xString,
                                       yString, deviationString, constrains, 1,
                                       100, PARAMETERS.figSize)
_PLOT.plotWitMinMaxWithFillBetween(labelStrings, PARAMETERS.colors,
                                   PARAMETERS.intervalColors,
                                   PARAMETERS.markers, figName, xlabel, ylabel,
                                   False, logYScale, xString, yString,
                                   minString, maxString, constrains, 1, 100,
                                   PARAMETERS.figSize)
_PLOT.plotWithDeviationWithFillBetween(labelStrings, PARAMETERS.colors,
                                       PARAMETERS.intervalColors,
                                       PARAMETERS.markers, figName, xlabel,
                                       ylabel, True, logYScale, xString,
                                       yString, deviationString, constrains, 1,
                                       100, PARAMETERS.figSize)
_PLOT.plotWitMinMaxWithFillBetween(labelStrings, PARAMETERS.colors,
                                   PARAMETERS.intervalColors,
                                   PARAMETERS.markers, figName, xlabel, ylabel,
                                   True, logYScale, xString, yString,
                                   minString, maxString, constrains, 1, 100,
                                   PARAMETERS.figSize)
                  "_Er_" + str(int(100*float(PARAMS.get("errorMargin")))) + \
                  "_Bt_" + PARAMS.get("bootstrapCycle")

figName = figPrefix + yString + "-" + figParamsString + figEndName

constrains = []
for label in labels:
    constrainsDico = {}
    for key, value in PARAMS.items():
        if (key == figVaryingParamString):
            constrainsDico[key] = label
        else:
            constrainsDico[key] = value

    constrains.append(constrainsDico)

labelStrings = []
for label in labels:
    labelStrings.append(label + labelString)

_PLOT.plotWithDeviationWithFillBetween(labelStrings, colors, intervalColors,
                                       markers, figName, xlabel, ylabel,
                                       logXScale, logYScale, xString, yString,
                                       deviationString, constrains, 1, 1,
                                       figSize)
_PLOT.plotWitMinMaxWithFillBetween(labelStrings, colors, intervalColors,
                                   markers, figName, xlabel, ylabel, logXScale,
                                   logYScale, xString, yString, minString,
                                   maxString, constrains, 1, 1, figSize)

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