diff --git a/plotly/plotlyfig_aux/handlegraphics/updateImage.m b/plotly/plotlyfig_aux/handlegraphics/updateImage.m index 453c83c8..e9ebb313 100644 --- a/plotly/plotlyfig_aux/handlegraphics/updateImage.m +++ b/plotly/plotlyfig_aux/handlegraphics/updateImage.m @@ -92,8 +92,10 @@ %-------------------------------------------------------------------------% %-image name-% -obj.data{imageIndex}.name = image_data.DisplayName; - +if ~isempty(image_data.DisplayName); + obj.data{imageIndex}.name = image_data.DisplayName; +else + obj.data{imageIndex}.name = image_data.DisplayName; %-------------------------------------------------------------------------% %-image visible-%