I think you are using MATLAB R2019a.
After plotting the figure, click on Data Tips option in the top right corner of the plot area (Refer the image below).

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