How to move "datatip" to a desired location in matlab plots??

71 ビュー (過去 30 日間)
pankaj singh
pankaj singh 2017 年 5 月 26 日
コメント済み: Seungjun Heo 2024 年 4 月 14 日 3:03
In a 2D-line plot, When I am clicking on the Data Cursor and then on any location on the line plot, the data-tip appears just in the first quadrant above the point. Is it possible to change its location to second, third, or 4th quadrant. Actually, I need to show values of 2 very-close points simultaneously, but the data-tips for both points overlaps. How can I show values of 2 or more close points simultaneously?
  1 件のコメント
Allen
Allen 2019 年 8 月 18 日
I often landed on this question looking a similar answer, but inolving instances when none of the typical positions allowed by standard data tips provided a decent view of all the plotted data. This eventually lead me to create "DragDataTip" to provide more flexibility to moving a data tip to any location within a plot axes.

サインインしてコメントする。

採用された回答

MathReallyWorks
MathReallyWorks 2017 年 5 月 26 日
Hello Pankaj,
Click on Data-Cursor and move it wherever you want on graphical window. It clearly shows attributes of that point (i.e. Location and RGB values).
For seeing two points simultaneously, go on pressing "shift+left click". The previous attributes remain there even after a new left click.
If the problem still persist, share with us your code for better answer.
  2 件のコメント
pankaj singh
pankaj singh 2017 年 5 月 27 日
編集済み: pankaj singh 2017 年 5 月 30 日
Thanks MathReallyWorks. It worked. I didn't knew it would be so simple.
Seungjun Heo
Seungjun Heo 2024 年 4 月 14 日 3:03
What if I want to do it in the code? I want the datatips to be appeared to the left side, (or 2nd quadrant) right after I run the code. I know that I can move the datatips by dragging, but I still want to know the way to do it in the code. Is there any way that I can do it?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!