diff --git a/plotly/Test_plotlyfig.m b/plotly/Test_plotlyfig.m index e7dae038..9d9fb183 100644 --- a/plotly/Test_plotlyfig.m +++ b/plotly/Test_plotlyfig.m @@ -295,10 +295,6 @@ function testSingleScatterPlotData(tc) ), ... "showlegend", false ... ); - if ~is_octave() - expected.hoverinfo = PlotlyTestCase.Any(); - expected.hovertext = PlotlyTestCase.Any(); - end tc.verifyEqualStructs(p.data{1}, expected); try close(); catch; end end diff --git a/plotly/plotlyfig_aux/handlegraphics/updateScatter.m b/plotly/plotlyfig_aux/handlegraphics/updateScatter.m index 4185b64b..faa8ef3b 100644 --- a/plotly/plotlyfig_aux/handlegraphics/updateScatter.m +++ b/plotly/plotlyfig_aux/handlegraphics/updateScatter.m @@ -32,6 +32,9 @@ end if ~isempty(dataTipRows) dataTipRows = dataTipRows(~ismember({dataTipRows.Label}, {'Size' 'Color' 'X' 'Y' 'Z'})); + % rows whose Value is a property name (e.g. 'AlphaData') refer to + % the scatter's own properties instead of carrying per-point data + dataTipRows = dataTipRows(~arrayfun(@(row) ischar(row.Value), dataTipRows)); if numel(dataTipRows) > 0 customLabel = ""; for i = 1:numel(dataTipRows)