Skip to content

Commit b7f4fa2

Browse files
Small bug fixes for plot visualization and gui (e0404#784)
* Bug fix for matRad_plotAxisLabel, cube indexing for viualization * Bug fix for GUI, visQuantity warning popup
1 parent 2bd3940 commit b7f4fa2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

matRad/gui/widgets/matRad_ViewingWidget.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,6 +1146,8 @@ function initValues(this)
11461146
otherwise
11471147
visQuantity = [];
11481148
end
1149+
else
1150+
visQuantity = [];
11491151
end
11501152

11511153
if isfield(pln,'propStf')

matRad/plotting/matRad_plotAxisLabels.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function matRad_plotAxisLabels(axesHandle,ct,plane,slice,defaultFontSize,tickdi
7070
set(axesHandle,'YTickLabel',round(linspace(ct.y(1),ct.y(end),10)));
7171
xlabel(axesHandle,'z [mm]','FontSize',defaultFontSize);
7272
ylabel(axesHandle,'y [mm]','FontSize',defaultFontSize);
73-
vcoord = matRad_cubeIndex2worldCoords([slice,1,1],ct);
73+
vcoord = matRad_cubeIndex2worldCoords([1,slice,1],ct);
7474
title(axesHandle,['sagittal plane x = ' num2str(vcoord(1)) ' [mm]'],'FontSize',defaultFontSize,'Color',matRad_cfg.gui.highlightColor);
7575
else
7676
xlabel(axesHandle,'z [voxels]','FontSize',defaultFontSize)
@@ -85,7 +85,7 @@ function matRad_plotAxisLabels(axesHandle,ct,plane,slice,defaultFontSize,tickdi
8585
set(axesHandle,'YTickLabel',round(linspace(ct.x(1),ct.x(end),10)));
8686
xlabel(axesHandle,'z [mm]','FontSize',defaultFontSize)
8787
ylabel(axesHandle,'x [mm]','FontSize',defaultFontSize)
88-
vcoord = matRad_cubeIndex2worldCoords([1,slice,1],ct);
88+
vcoord = matRad_cubeIndex2worldCoords([slice,1,1],ct);
8989
title(axesHandle,['coronal plane y = ' num2str(vcoord(2)) ' [mm]'],'FontSize',defaultFontSize,'Color',matRad_cfg.gui.highlightColor)
9090
else
9191
xlabel(axesHandle,'z [voxels]','FontSize',defaultFontSize)

0 commit comments

Comments
 (0)