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 e886486 commit 0832b9bCopy full SHA for 0832b9b
plotly/plotlyfig_aux/handlegraphics/updateHeatmap.m
@@ -58,14 +58,19 @@
58
m = size(cdata, 2);
59
n = size(cdata, 1);
60
annotations = cell(1,m*n);
61
+
62
+ % Set font properties once for all annotations
63
+ obj.layout.font = struct( ...
64
+ size = heat_data.FontSize*1.15, ...
65
+ family = matlab2plotlyfont(heat_data.FontName) ...
66
+ );
67
68
for i = 1:m
69
for j = 1:n
70
ann.text = num2str(round(cdata(j,i), 2));
71
ann.x = i-1;
72
ann.y = j-1;
73
ann.showarrow = false;
- ann.font.size = heat_data.FontSize*1.15;
- ann.font.family = matlab2plotlyfont(heat_data.FontName);
74
if cdata(j,i) < 0.925*maxcol
75
col = [0,0,0];
76
else
0 commit comments