Skip to content

Commit

Permalink
Update PlotLRMeshes.m
Browse files Browse the repository at this point in the history
  • Loading branch information
emmaspeh committed Oct 17, 2024
1 parent 5c918e5 commit 500aa89
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Functions/Visualizations/PlotLRMeshes.m
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,9 @@


%% Set Lighting and Persepctive.
set(params.fig_handle, 'Units', 'inches');
delete(gca); % resets lighting if we are called repeated times
if isfield(params, 'render_tool')
set(params.fig_handle, 'Units', 'inches');
end
switch params.view
case {'lat', 'med'}
view([-90, 0]);
Expand All @@ -210,7 +211,9 @@
light('Position', [500, -20, 0], 'Style', 'local');
light('Position', [0, -200, 50], 'Style', 'local');
end
set(params.fig_handle, 'Units', 'pixels');
if isfield(params, 'render_tool')
set(params.fig_handle, 'Units', 'pixels');
end


%% Adjust visualization parameters
Expand Down

0 comments on commit 500aa89

Please sign in to comment.