We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcb3c66 commit cca6c01Copy full SHA for cca6c01
plotly/plotlyfig_aux/handlegraphics/updateArea.m
@@ -113,10 +113,10 @@ function updateArea(obj,areaIndex)
113
%-------------------------------------------------------------------------%
114
115
%-area name-%
116
-if isfield(area_data,'DisplayName')
+if ~isempty(area_data.DisplayName);
117
obj.data{areaIndex}.name = area_data.DisplayName;
118
else
119
- obj.data{areaIndex}.name = '';
+ obj.data{areaIndex}.name = area_data.DisplayName;
120
end
121
122
0 commit comments