Disable automatic Data Tips

43 ビュー (過去 30 日間)
Chad Greene
Chad Greene 2020 年 1 月 2 日
コメント済み: Tong D 2021 年 4 月 22 日
I've just updated from R2018b to R2019b, and now every time I click on a plot, it prints a new Data Tip without my asking it to. So just clicking on a plot to make the axes current or pan or zoom ends up creating a mess like this:
Screen Shot 2020-01-02 at 12.25.41 PM.png
Is there any way to disable this behavior?

採用された回答

Mustafa Abu-Mallouh
Mustafa Abu-Mallouh 2020 年 1 月 2 日
編集済み: Mustafa Abu-Mallouh 2020 年 1 月 2 日
There are a few ways to go about this. To do this for individual plots, you can use the disableDefaultInteractivity command as below:
x = 0:0.01:10;
y = sin(x);
figure(1)
plot(x,y)
disableDefaultInteractivity(gca)
If you would like to do it for all of the created plots in a session, use
>> set( groot , 'defaultAxesCreateFcn' , 'disableDefaultInteractivity(gca)' )
However, with that method it will reset everytime you start up MATLAB.
If you would like this to apply whenever you open MATLAB, you'll need to implement it into your startup.m file. Here is an example of how you could implement it (MATLAB version 9.7 is 2019b)
if ~verLessThan('MATLAB','9.7')
set( groot , 'defaultAxesCreateFcn' , 'disableDefaultInteractivity(gca)' )
end
  8 件のコメント
Chad Greene
Chad Greene 2021 年 4 月 14 日
Yeah, none of the proposed solutions are working for me these days either. Just have to keep swatting them away.
Tong D
Tong D 2021 年 4 月 22 日
right click and delete all data tips

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

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by