Skip to content

Commit

Permalink
some color and octave compatibility fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wahln committed Sep 9, 2024
1 parent ec7f56f commit 833caed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions matRad/gui/widgets/matRad_DVHStatsWidget.m
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ function removeOverlap(this)
p1 = uipanel(...
'Parent',h88,...
'BackgroundColor',matRad_cfg.gui.backgroundColor,...
'ForegroundColor',matRad_cfg.gui.highlightColor,...
'Tag','panelDVH',...
'Clipping','off',...
'Position',[0.005 0.505 0.99 0.495],...
Expand All @@ -84,6 +85,7 @@ function removeOverlap(this)
p2 = uipanel(...
'Parent',h88,...
'BackgroundColor',matRad_cfg.gui.backgroundColor,...
'ForegroundColor',matRad_cfg.gui.highlightColor,...
'Tag','panelStats',...
'Clipping','off',...
'Position',[0.005 0.005 0.99 0.495],...
Expand Down
10 changes: 6 additions & 4 deletions matRad/gui/widgets/matRad_DVHWidget.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ function initialize(this)

if doUpdate && evalin('base','exist(''resultGUI'')') && evalin('base','exist(''cst'')')
this.showDVH();
if numel(this.widgetHandle.Children) > 2
ch = get(this.widgetHandle,'Children'); %Octave compatibility, no dot indexing
if numel(ch) > 2
this.removeOverlap();
end
end
Expand Down Expand Up @@ -121,9 +122,10 @@ function showDVH(this)
end
end
end

this.widgetHandle.Children(2).Title.String = strrep(this.selectedCube, '_',' ');
this.widgetHandle.Children(2).Title.Color = matRad_cfg.gui.textColor;

%No dot indexing for Octave compatibility
hTitle = get(this.dvhAx,'Title');
set(hTitle,'String', strrep(this.selectedCube, '_',' '), 'Color',matRad_cfg.gui.highlightColor);
end

end
Expand Down

0 comments on commit 833caed

Please sign in to comment.