diff --git a/src/ParamOutputImpl/Plot/PanelPlotOutput.cc b/src/ParamOutputImpl/Plot/PanelPlotOutput.cc index c11b610..881ce25 100644 --- a/src/ParamOutputImpl/Plot/PanelPlotOutput.cc +++ b/src/ParamOutputImpl/Plot/PanelPlotOutput.cc @@ -2677,9 +2677,11 @@ void PanelPlotOutput::createParameters(std::list& usedParametersId_ } // Build expression for computed parameter = usedParam - minParam + AMDA::Parameters::ParameterSPtr originalMinParam = _parameterManager.getParameter(errorBarProp.getErrorMinMax()->getOriginalParamMin()); + AMDA::Parameters::ParameterSPtr minParam = createSampledParameterUnderReferenceParameter(originalMinParam, usedParam); std::stringstream minExpr; minExpr << "$" << usedParam->getId() << usedParamIndex.str() - << "-$" + errorBarProp.getErrorMinMax()->getOriginalParamMin() << minParamIndex.str(); + << "-$" + minParam->getId() << minParamIndex.str(); //create parameter from expression AMDA::Parameters::ParameterSPtr usedMinParam = _parameterManager.getParameterFromExpression(minExpr.str(), originalParam->getGapThreshold()); @@ -2695,9 +2697,12 @@ void PanelPlotOutput::createParameters(std::list& usedParametersId_ errorBarProp.getErrorMinMax()->setUsedParamMin(usedMinParam->getId()); // Build expression for computed parameter = usedParam + maxParam + AMDA::Parameters::ParameterSPtr originalMaxParam = _parameterManager.getParameter(errorBarProp.getErrorMinMax()->getOriginalParamMax()); + + AMDA::Parameters::ParameterSPtr maxParam = createSampledParameterUnderReferenceParameter(originalMaxParam, usedParam); std::stringstream maxExpr; maxExpr << "$" << usedParam->getId() << usedParamIndex.str() - << "+$" + errorBarProp.getErrorMinMax()->getOriginalParamMax() << maxParamIndex.str(); + << "+$" + maxParam->getId() << maxParamIndex.str(); //create parameter from expression AMDA::Parameters::ParameterSPtr usedMaxParam = _parameterManager.getParameterFromExpression(maxExpr.str(), originalParam->getGapThreshold()); diff --git a/test/FitNesseRoot/ReleaseS/ThirdPart/ReLease3/SprinT2/UserStory13/errorbar_13_02_REF.png b/test/FitNesseRoot/ReleaseS/ThirdPart/ReLease3/SprinT2/UserStory13/errorbar_13_02_REF.png index 2d054b6..375dbc2 100644 Binary files a/test/FitNesseRoot/ReleaseS/ThirdPart/ReLease3/SprinT2/UserStory13/errorbar_13_02_REF.png and b/test/FitNesseRoot/ReleaseS/ThirdPart/ReLease3/SprinT2/UserStory13/errorbar_13_02_REF.png differ diff --git a/test/FitNesseRoot/ReleaseS/ThirdPart/ReLease3/SprinT2/UserStory13/errorbar_13_03_REF.png b/test/FitNesseRoot/ReleaseS/ThirdPart/ReLease3/SprinT2/UserStory13/errorbar_13_03_REF.png index c7d7862..64c7735 100644 Binary files a/test/FitNesseRoot/ReleaseS/ThirdPart/ReLease3/SprinT2/UserStory13/errorbar_13_03_REF.png and b/test/FitNesseRoot/ReleaseS/ThirdPart/ReLease3/SprinT2/UserStory13/errorbar_13_03_REF.png differ -- libgit2 0.21.2