COLEA : Warning message when using MATLAB R2015a

6 views (last 30 days)
Hello,
I get the following warning message whenever I type "colea" knowing that I get to see the file dialog window afterward :
_ _Warning: The EraseMode property is no longer supported and will error in a future release.
Use the ANIMATEDLINE function for animating lines and points instead of EraseMode 'none'.
Removing instances of EraseMode set to 'normal', 'xor', and 'background' has minimal
impact.
> In colea (line 363)
Warning: The EraseMode property is no longer supported and will error in a future release.
Use the ANIMATEDLINE function for animating lines and points instead of EraseMode 'none'.
Removing instances of EraseMode set to 'normal', 'xor', and 'background' has minimal
impact.
> In colea (line 366)__
The corresponding code lines are :
%-----------Initialize handles to cursor lines ------------
np=3; Ylim=get(gca,'YLim');
hl=line('Xdata',[np np],'Ydata',Ylim,'Linestyle','-',...
'color',[0 0 0],'Erasemode','xor');
hr=line('Xdata',[np np],'Ydata',Ylim,'Linestyle','--',...
'color',[0 0 0],'Erasemode','xor');
doit=0;
I don't know how to fix it. Kindly advise.
Thanks
Yaseen

Answers (1)

Walter Roberson
Walter Roberson on 14 Sep 2015
  4 Comments
Yaseen
Yaseen on 16 Sep 2015
Edited: Yaseen on 16 Sep 2015
can you please explain how to remove those functions from the calls ? do you mean deleting those functions from all m files in COLEA toolbox ?
Walter Roberson
Walter Roberson on 21 Mar 2016
I mean that you should go into the code, and each place that you find
'Erasemode', 'xor'
in the code, that you should delete those words. For example the lines
hl=line('Xdata',[np np],'Ydata',Ylim,'Linestyle','-',...
'color',[0 0 0],'Erasemode','xor');
should be changed to
hl=line('Xdata',[np np],'Ydata',Ylim,'Linestyle','-',...
'color',[0 0 0]);

Sign in to comment.

Categories

Find more on Simulation, Tuning, and Visualization in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!