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 0051a43 commit 03f6f33Copy full SHA for 03f6f33
plotly/plotlyfig_aux/handlegraphics/updateScatter.m
@@ -26,7 +26,11 @@
26
dataTipRows = plotData.DataTipTemplate.DataTipRows;
27
dataTipRows = dataTipRows(~ismember({dataTipRows.Label},["Size" "Color" "X" "Y" "Z"]));
28
if numel(dataTipRows) > 0
29
- customLabel = join(string({dataTipRows.Label}) + ": " + string({dataTipRows.Value}), "<br>");
+ customLabel = "";
30
+ for i = 1:numel(dataTipRows)
31
+ dataTipRow = dataTipRows(i);
32
+ customLabel = customLabel + arrayfun(@(value) string(dataTipRow.Label) + ": " + string(value) + "<br>", dataTipRow.Value);
33
+ end
34
data.hovertext = "X: " + data.x + "<br>" + "Y: " + data.y + "<br>" + customLabel;
35
data.hoverinfo = "text";
36
end
0 commit comments