How to plot Date on x axis and string on Y axis. Text annonation on Data points

조회 수: 4 (최근 30일)
Attacched excel sheet has the Date and string. I want to plot Time on x axis and string message on the y axis.
I want Text Annotations plots.
Thanks
  댓글 수: 5
Walter Roberson
Walter Roberson 2019년 8월 3일
Inside the callback, get axes CurrentPoint. Extract the x from that and find the closest x in the data. Use that to pull out the strings from the table. Return a cell array of character vectors; each entry will become a separate line in the datatip shown.
I am not going to do an implementation for you, as the result is going to look pretty poor. With that data, I believe that the kind of graph that is being proposed is nearly meaningless.
Walter Roberson
Walter Roberson 2020년 1월 28일
It is disappointing that the user chose to remove their discussion, making the topic hard to follow.

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

답변 (1개)

KSSV
KSSV 2019년 8월 2일
  댓글 수: 1
KSSV
KSSV 2019년 8월 2일
MATLAB is rich in documentation......you should read from there with lot of exaples.

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

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by