From 630ce80f8a7fc8f8a47c26fc82234a2ae86e516c Mon Sep 17 00:00:00 2001 From: Furkan Date: Fri, 5 Apr 2024 08:45:53 +0000 Subject: [PATCH] #6859 --- src/ParamOutputImpl/Plot/PanelPlotOutput.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ParamOutputImpl/Plot/PanelPlotOutput.cc b/src/ParamOutputImpl/Plot/PanelPlotOutput.cc index f74775d..dc6ed6c 100644 --- a/src/ParamOutputImpl/Plot/PanelPlotOutput.cc +++ b/src/ParamOutputImpl/Plot/PanelPlotOutput.cc @@ -412,8 +412,8 @@ namespace plot if ((pAxis->_showLegend == true) && (nbLegendRows != 0)) { rightSpace += PlPlotUtil::LINE_SPACE_TITLE * legendCharSizePanel.second * std::get<1>(pageSize) / std::get<0>(pageSize); - pAxis->setLegendOffset(rightSpace + 0.5 * legendCharSizePanel.second * std::get<1>(pageSize) / std::get<0>(pageSize)); - rightSpace += (nbLegendRows + PlPlotUtil::LINE_SPACE_TITLE * (nbLegendRows + 1)) * legendCharSizePanel.second * std::get<1>(pageSize) / std::get<0>(pageSize); + pAxis->setLegendOffset(rightSpace + 0.3 * legendCharSizePanel.second * std::get<1>(pageSize) / std::get<0>(pageSize)); + rightSpace += (2*nbLegendRows + PlPlotUtil::LINE_SPACE_TITLE * (nbLegendRows + 1)) * legendCharSizePanel.second * std::get<1>(pageSize) / std::get<0>(pageSize); } break; -- libgit2 0.21.2