We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b71548 commit ce1bbbdCopy full SHA for ce1bbbd
plotly/plotlyfig_aux/helpers/getShowLegend.m
@@ -1,12 +1,9 @@
1
function showLegend = getShowLegend(plotData)
2
try
3
- leg = plotData.Annotation;
4
- legInfo = leg.LegendInformation;
5
-
6
- switch legInfo.IconDisplayStyle
7
- case 'on'
+ switch plotData.Annotation.LegendInformation.IconDisplayStyle
+ case "on"
8
showLegend = true;
9
- case 'off'
+ case "off"
10
showLegend = false;
11
end
12
showLegend = showLegend & ~isempty(plotData.DisplayName);
0 commit comments