Commit 0a7df94dda36bf435598fa50fa52713f8a0cf510

Authored by Benjamin Renard
1 parent 8c4ae6cc

Fix bug with histo1D preview + Fix #11538

src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php
@@ -108,6 +108,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass @@ -108,6 +108,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass
108 case 'PNG': 108 case 'PNG':
109 $fileFormat = RequestOutputPlotPageFormatEnum::PNG; 109 $fileFormat = RequestOutputPlotPageFormatEnum::PNG;
110 $extension = ".png"; 110 $extension = ".png";
  111 + $plotOutputNode->setStructure(RequestOutputPlotStructureEnum::ONE_FILE_PER_INTERVAL);
111 break; 112 break;
112 case 'PDF': 113 case 'PDF':
113 $fileFormat = RequestOutputPlotPageFormatEnum::PDF; 114 $fileFormat = RequestOutputPlotPageFormatEnum::PDF;
@@ -120,6 +121,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass @@ -120,6 +121,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass
120 case 'SVG': 121 case 'SVG':
121 $fileFormat = RequestOutputPlotPageFormatEnum::SVG; 122 $fileFormat = RequestOutputPlotPageFormatEnum::SVG;
122 $extension = ".svg"; 123 $extension = ".svg";
  124 + $plotOutputNode->setStructure(RequestOutputPlotStructureEnum::ONE_FILE_PER_INTERVAL);
123 break; 125 break;
124 default: 126 default:
125 throw new Exception('File format not implemented.'); 127 throw new Exception('File format not implemented.');
@@ -2106,6 +2108,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass @@ -2106,6 +2108,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass
2106 $crtParam->{'param-drawing-type'} = 'histogram1d'; 2108 $crtParam->{'param-drawing-type'} = 'histogram1d';
2107 $crtParam->{'param-drawing-object'}->{'histo1d-xbinnumber'} = $input->{'histo1d-xbinnumber'}; 2109 $crtParam->{'param-drawing-object'}->{'histo1d-xbinnumber'} = $input->{'histo1d-xbinnumber'};
2108 $crtParam->{'param-drawing-object'}->{'histo1d-function'} = $input->{'histo1d-function'}; 2110 $crtParam->{'param-drawing-object'}->{'histo1d-function'} = $input->{'histo1d-function'};
  2111 + $crtParam->{'param-drawing-object'}->{'histo1d-yaxis'} = $input->{'histo1d-yaxis'};
2109 2112
2110 // Add the modified parameter to the 'params' array 2113 // Add the modified parameter to the 'params' array
2111 $panel->{"params"}[] = $crtParam; 2114 $panel->{"params"}[] = $crtParam;