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

1 Ansicht (letzte 30 Tage)
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 Kommentare
Walter Roberson
Walter Roberson am 3 Aug. 2019
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 am 28 Jan. 2020
It is disappointing that the user chose to remove their discussion, making the topic hard to follow.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

KSSV
KSSV am 2 Aug. 2019

Kategorien

Mehr zu Labels and Annotations finden Sie in Help Center und File Exchange

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by