Disable automatic Data Tips
조회 수: 56 (최근 30일)
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:
Is there any way to disable this behavior?
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);
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)
set( groot , 'defaultAxesCreateFcn' , 'disableDefaultInteractivity(gca)' )