Skip to content

Commit

Permalink
Small bug fixes for plot visualization and gui (#784)
Browse files Browse the repository at this point in the history
* Bug fix for matRad_plotAxisLabel, cube indexing for viualization

* Bug fix for GUI, visQuantity warning popup
  • Loading branch information
remocristoforetti authored Oct 17, 2024
1 parent 1befbb5 commit b2590d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions matRad/gui/widgets/matRad_ViewingWidget.m
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,8 @@ function initValues(this)
otherwise
visQuantity = [];
end
else
visQuantity = [];
end

if isfield(pln,'propStf')
Expand Down
4 changes: 2 additions & 2 deletions matRad/plotting/matRad_plotAxisLabels.m
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function matRad_plotAxisLabels(axesHandle,ct,plane,slice,defaultFontSize,tickdi
set(axesHandle,'YTickLabel',round(linspace(ct.y(1),ct.y(end),10)));
xlabel(axesHandle,'z [mm]','FontSize',defaultFontSize);
ylabel(axesHandle,'y [mm]','FontSize',defaultFontSize);
vcoord = matRad_cubeIndex2worldCoords([slice,1,1],ct);
vcoord = matRad_cubeIndex2worldCoords([1,slice,1],ct);
title(axesHandle,['sagittal plane x = ' num2str(vcoord(1)) ' [mm]'],'FontSize',defaultFontSize,'Color',matRad_cfg.gui.highlightColor);
else
xlabel(axesHandle,'z [voxels]','FontSize',defaultFontSize)
Expand All @@ -85,7 +85,7 @@ function matRad_plotAxisLabels(axesHandle,ct,plane,slice,defaultFontSize,tickdi
set(axesHandle,'YTickLabel',round(linspace(ct.x(1),ct.x(end),10)));
xlabel(axesHandle,'z [mm]','FontSize',defaultFontSize)
ylabel(axesHandle,'x [mm]','FontSize',defaultFontSize)
vcoord = matRad_cubeIndex2worldCoords([1,slice,1],ct);
vcoord = matRad_cubeIndex2worldCoords([slice,1,1],ct);
title(axesHandle,['coronal plane y = ' num2str(vcoord(2)) ' [mm]'],'FontSize',defaultFontSize,'Color',matRad_cfg.gui.highlightColor)
else
xlabel(axesHandle,'z [voxels]','FontSize',defaultFontSize)
Expand Down

0 comments on commit b2590d6

Please sign in to comment.