Commit 0a7df94dda36bf435598fa50fa52713f8a0cf510
1 parent
8c4ae6cc
Exists in
master
and in
8 other branches
Fix bug with histo1D preview + Fix #11538
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
src/InputOutput/IHMImpl/Params/PlotImpl/IHMInputOutputParamsPlotClass.php
... | ... | @@ -108,6 +108,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass |
108 | 108 | case 'PNG': |
109 | 109 | $fileFormat = RequestOutputPlotPageFormatEnum::PNG; |
110 | 110 | $extension = ".png"; |
111 | + $plotOutputNode->setStructure(RequestOutputPlotStructureEnum::ONE_FILE_PER_INTERVAL); | |
111 | 112 | break; |
112 | 113 | case 'PDF': |
113 | 114 | $fileFormat = RequestOutputPlotPageFormatEnum::PDF; |
... | ... | @@ -120,6 +121,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass |
120 | 121 | case 'SVG': |
121 | 122 | $fileFormat = RequestOutputPlotPageFormatEnum::SVG; |
122 | 123 | $extension = ".svg"; |
124 | + $plotOutputNode->setStructure(RequestOutputPlotStructureEnum::ONE_FILE_PER_INTERVAL); | |
123 | 125 | break; |
124 | 126 | default: |
125 | 127 | throw new Exception('File format not implemented.'); |
... | ... | @@ -2106,6 +2108,7 @@ class IHMInputOutputParamsPlotClass extends IHMInputOutputParamsAbstractClass |
2106 | 2108 | $crtParam->{'param-drawing-type'} = 'histogram1d'; |
2107 | 2109 | $crtParam->{'param-drawing-object'}->{'histo1d-xbinnumber'} = $input->{'histo1d-xbinnumber'}; |
2108 | 2110 | $crtParam->{'param-drawing-object'}->{'histo1d-function'} = $input->{'histo1d-function'}; |
2111 | + $crtParam->{'param-drawing-object'}->{'histo1d-yaxis'} = $input->{'histo1d-yaxis'}; | |
2109 | 2112 | |
2110 | 2113 | // Add the modified parameter to the 'params' array |
2111 | 2114 | $panel->{"params"}[] = $crtParam; | ... | ... |