Error when checking data points in plot
38 ビュー (過去 30 日間)
古いコメントを表示
I have been running into this issue for some time. I can not hover my mouse over a plot and have the time-value information displayed. I am using 'plot' function to display the figure.
I get this warning in the command window:
Error in matlab.graphics.interaction.actions.Linger
Warning: Error occurred while executing the listener callback for event WindowMouseMotion defined for class matlab.ui.Figure:
Undefined function 'convertDataToPickSpace' for input arguments of type 'matlab.graphics.chart.primitive.Line'.
Error in matlab.graphics.chart.interaction.dataannotatable.picking.AnnotatablePicker/convertToPickSpace (line 40)
pickLocations = convertDataToPickSpace(hContext, iter, request3D);
Error in matlab.graphics.chart.interaction.dataannotatable.picking.AnnotatablePicker/nearestSegment (line 39)
pixelLocations = obj.convertToPickSpace(hContext, varargin, valid);
Error in matlab.graphics.chart.interaction.dataannotatable.LineHelper>localGetNearestSegment (line 252)
[index1, index2, t] = utils.nearestSegment(hLine, position, isPixelPoint, data{:});
Error in matlab.graphics.chart.interaction.dataannotatable.LineHelper.getNearestPoint (line 77)
[index1, index2, t] = localGetNearestSegment(hLine, position, true);
Error in matlab.graphics.interaction.uiaxes.DataTipsBase
Error in matlab.graphics.interaction.actions.Linger/motionCallback
Error in matlab.graphics.interaction.actions.Linger
Warning says I have a missing function 'convertDataToPickSpace'.
Am I missing a toolbox?
I am using MATLAB R2022b, but have the same issue in R2024b.
Thanks in advance!
0 件のコメント
回答 (1 件)
dpb
2025 年 9 月 25 日 19:48
編集済み: dpb
2025 年 9 月 25 日 20:14
That you are seeing the same issue in both R2022b and R2024b would tend to indicate something incompatible in your system rather than a MATLAB issue itself.
Post a minimum working example that creates the symptom for you so folks here can try to duplicate an exact case.
I tried both
plot(randn(10,4))
close
and
hUIF=uifigure;
hAx=axes(hUIF);
plot(hAx,randn(10,4))
with R2022b and the coordinates at the points showed up under the mouse hover for both figures.
See what
which -all convertDataToPickSpace
returns at the command line. For R2022b locally, it returns
C:\MLR2022b\toolbox\matlab\specgraph\+matlab\+graphics\+chart\+interaction\+dataannotatable\+picking\@AnnotatablePicker\private\convertDataToPickSpace.m % matlab.graphics.chart.interaction.dataannotatable.picking.AnnotatablePicker method
>>
It's possible some 3rd party package did something untoward, maybe????
6 件のコメント
dpb
2025 年 9 月 26 日 13:43
編集済み: dpb
2025 年 9 月 26 日 16:00
Aw-ha! That makes a lot more sense if only the one release is affected.
Meanwhile, I did test here with a 3D primitive with no issue with R2022b; although I didn't go look at the source, I presume probably request3D is a logical flag variable in the above.
Probably the reinstall will fix things; make sure to also do the latest update; fortunately, they are cumulative so don't have to do them sequentially if is more than one.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!