From 0a7df94dda36bf435598fa50fa52713f8a0cf510 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 1 Feb 2024 10:10:15 +0000 Subject: [PATCH] Fix bug with histo1D preview + Fix #11538 --- src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php b/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php index a8f0d1c..fd78073 100644 --- a/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php +++ b/src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php @@ -108,6 +108,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass case 'PNG': $fileFormat = RequestOutputPlotPageFormatEnum::PNG; $extension = ".png"; + $plotOutputNode->setStructure(RequestOutputPlotStructureEnum::ONE_FILE_PER_INTERVAL); break; case 'PDF': $fileFormat = RequestOutputPlotPageFormatEnum::PDF; @@ -120,6 +121,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass case 'SVG': $fileFormat = RequestOutputPlotPageFormatEnum::SVG; $extension = ".svg"; + $plotOutputNode->setStructure(RequestOutputPlotStructureEnum::ONE_FILE_PER_INTERVAL); break; default: throw new Exception('File format not implemented.'); @@ -2106,6 +2108,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass $crtParam->{'param-drawing-type'} = 'histogram1d'; $crtParam->{'param-drawing-object'}->{'histo1d-xbinnumber'} = $input->{'histo1d-xbinnumber'}; $crtParam->{'param-drawing-object'}->{'histo1d-function'} = $input->{'histo1d-function'}; + $crtParam->{'param-drawing-object'}->{'histo1d-yaxis'} = $input->{'histo1d-yaxis'}; // Add the modified parameter to the 'params' array $panel->{"params"}[] = $crtParam; -- libgit2 0.21.2