diff --git a/Functions/Visualizations/PlotLRMeshes.m b/Functions/Visualizations/PlotLRMeshes.m index 71f4dd3..fa12863 100644 --- a/Functions/Visualizations/PlotLRMeshes.m +++ b/Functions/Visualizations/PlotLRMeshes.m @@ -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]); @@ -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