@@ -114,7 +114,7 @@ function matRad_UIInterpolation(data,dij,pln,ct,cst,optiProb)
114114 set(fixButtons{i },' Callback' ,{@FixButton_callback ,refObj ,sliders ,i })
115115 end
116116
117- set(DVHButton ,' Callback' ,{@DVHButton_callback ,cst ,refObj ,dij ,pln })
117+ set(DVHButton ,' Callback' ,{@DVHButton_callback ,DVHPlot , cst ,refObj ,dij ,pln })
118118 set(ExportButton ,' Callback' ,{@ExportButton_callback ,refObj ,dij })
119119 set(ResetConstraintButton ,' Callback' ,{@ResetConstraintButton_callback ,refObj ,sliders })
120120 set(ParetoSurfaceButton ,' Callback' ,{@ParetoSurfaceButton_callback ,refObj })
@@ -131,17 +131,17 @@ function matRad_UIInterpolation(data,dij,pln,ct,cst,optiProb)
131131 matRad_plotSliceWrapper(DosePlot ,ct ,cst ,1 ,cubes ,3 ,slice );
132132 % zoom(DosePlot,1.1);
133133 dvh = matRad_calcDVH(cst ,cubes ,' cum' );
134- matRad_showDVH(dvh ,cst ,pln );
134+ matRad_showDVH(DVHPlot , dvh ,cst ,pln );
135135
136136end
137137 % End of main file
138- function DVHButton_callback(~,~,cst ,refObj ,dij ,pln )
138+ function DVHButton_callback(~,~,axesDVH , cst ,refObj ,dij ,pln )
139139 % Shows the DVH for the current plan
140140 resultGUI = matRad_calcCubes(refObj .wRef ,dij );
141141 % dvh = matRad_calcDVH(cst,doseCube,'cum');
142142 dvh = matRad_calcDVH(cst ,resultGUI .physicalDose ,' cum' );
143143
144- matRad_showDVH(dvh ,cst ,pln ,refObj .linestyle );
144+ matRad_showDVH(axesDVH , dvh ,cst ,pln ,refObj .linestyle );
145145 if refObj .linestyle < 4
146146 refObj.linestyle = refObj .linestyle + 1 ;
147147 else
0 commit comments