Data Cursor tool shows value close (but not equal) to actually plotted value, not a rounding issue

조회 수: 1 (최근 30일)
I have a series of subplots each of which plots blue data points (representing values of 1D vectors) at corresponding x locations (y location is always 0):
I used the Data Cursor tool to see the exact value of data points placed one above the other (with close but not exactly equal x positioning), and was surprised to see that the Data Cursor shows the same value for both data points, even though that value is NOT among the values plotted for either of the subplots (it is close to those values, but not the same, such as 5965 vs 5924).
I've double checked to make sure I was comparing the right things (I was). The order of magnitude of the plotted data is integers up to a few hundred thousands, so there should be clipping/rounding effects explaining this strange behaviour!?
Thanks for any inputs!
  댓글 수: 2
Jan
Jan 2017년 1월 5일
Can you post some code, which reprocuds your observations? Currently all we have is a pixel image and your description, but the problem must be hidden somewhere else.
z8080
z8080 2017년 1월 6일
Apologies, that one was my mistake. While trying to create a minimal working example to post here in reply to your comment, what usually happens happened, i.e. I discovered what the problem was myself. namely, the Data CUrsor was in fact referring to one of the othre data points on the same plot (the square), which indeed has a close if unequal value to that of the blue dot.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by