From 59481e8885d17e6795fd447f5d9005fb48feadc3 Mon Sep 17 00:00:00 2001 From: Gilberto Galvis Date: Thu, 5 Aug 2021 17:45:23 -0400 Subject: [PATCH] fix issue 286 --- plotly/plotlyfig_aux/handlegraphics/updateImage.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plotly/plotlyfig_aux/handlegraphics/updateImage.m b/plotly/plotlyfig_aux/handlegraphics/updateImage.m index 073a7590..f1b37783 100644 --- a/plotly/plotlyfig_aux/handlegraphics/updateImage.m +++ b/plotly/plotlyfig_aux/handlegraphics/updateImage.m @@ -94,6 +94,8 @@ %-image name-% try obj.data{imageIndex}.name = image_data.DisplayName; +catch + obj.data{imageIndex}.name = ''; end %-------------------------------------------------------------------------% @@ -119,8 +121,8 @@ %-------------------------------------------------------------------------% %-image zmax-% -% axis_data.CLim(2); % comment this as optional -obj.data{imageIndex}.zmax = 255; +axis_data.CLim(2); +% obj.data{imageIndex}.zmax = 255; % comment this as optional %-------------------------------------------------------------------------% @@ -150,6 +152,8 @@ end obj.data{imageIndex}.showlegend = showleg; +catch + %TODO to future end %-------------------------------------------------------------------------%