From 500aa89345a51a96efc7a90fa992adfb93757ffd Mon Sep 17 00:00:00 2001 From: emmaspeh Date: Thu, 17 Oct 2024 13:17:41 -0500 Subject: [PATCH] Update PlotLRMeshes.m --- Functions/Visualizations/PlotLRMeshes.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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