Skip to content

Commit bb2ca67

Browse files
Merge pull request #459 from plotly/fix_issue_447
fix issue #447
2 parents 4405763 + 472c642 commit bb2ca67

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

plotly/plotlyfig_aux/handlegraphics/updatePatch.m

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,7 @@
135135
%---------------------------------------------------------------------%
136136

137137
%-patch name-%
138-
if ~isempty(patch_data.DisplayName)
139-
obj.data{patchIndex}.name = patch_data.DisplayName;
140-
else
141-
obj.data{patchIndex}.name = patch_data.DisplayName;
142-
end
138+
obj.data{patchIndex}.name = patch_data.DisplayName;
143139

144140
%---------------------------------------------------------------------%
145141

@@ -234,6 +230,7 @@
234230
showleg = false;
235231
end
236232

233+
showleg = showleg & ~isempty(obj.data{patchIndex}.name);
237234
obj.data{patchIndex}.showlegend = showleg;
238235

239236
%-------------------------------------------------------------------------%

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy