Warning message: Erase mode property no longer supported!!
    6 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    LALE ASIK
 am 12 Okt. 2017
  
    
    
    
    
    Kommentiert: LALE ASIK
 am 15 Okt. 2017
            Hello,
I get the following warning message:
Warning: The EraseMode property is no longer supported and will error in a future release.
The corresponding code lines are :
KeSTART = 0;
KeSTEP = 0.025;
KeSTOP = 2;
AXDEF = [KeSTART KeSTOP 0 1];
colordef white;
f1 = figure;
p = plot(AXDEF(1)-1,AXDEF(3)-1,'k.');
drawnow;
set(p,'Erasemode','none','MarkerSize',1);
axis(AXDEF);
grid off;
hold on;
I found the following link: https://www.mathworks.com/help/matlab/graphics_transition/how-do-i-replace-the-erasemode-property.html.
It is stated that it can be replaced by animatedline, but I don't know how to replace it in the line of code.
Could you help with modifying the above code?
1 Kommentar
  Geoff Hayes
      
      
 am 12 Okt. 2017
				Lale - you may need to show more of your code so that we can get a better idea of what comes next. Why (in the above) were you using EraseMode?
Akzeptierte Antwort
  Jan
      
      
 am 12 Okt. 2017
        Simply omit the 'Erasemode','none' in your code and do not delete the created line afterwards.
3 Kommentare
  Jan
      
      
 am 13 Okt. 2017
				But this is not a problem of the EraseMode, but of:
axis(AXDEF)
The dot is drawn at [AXDEF(1)-1,AXDEF(3)-1], or [-1, -1] Then you move the visible area to [KeSTART KeSTOP 0 1], which is [0 2 0 1]. Having a width of 0 is strange, but most of all the point [-1, -1] is outside the visible area.
In older Matlab version the EraseMode took a role here, because the drawn dot was not removed from the view. But this is a dirty way of programming. Better define the limits of the diagram such, that you can see the data.
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Graphics Performance finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


