"Warning: Error updating Legend" when opening a saved figure as .fig
    4 views (last 30 days)
  
       Show older comments
    
    Alexandre LEGAY
 on 3 Feb 2020
  
    
    
    
    
    Commented: Alexandre LEGAY
 on 7 Feb 2020
            Hello !
My problem is the following :
- I have saved many figures as ".fig" from a computer to which I can't access anymore.
- When I wan't to open these figures from my own computer (Matlab R2018a), I obtain the following error : "Warning: Error updating Legend. Reference to non-existent field 'ParentPositionCachePoints'." Concretely, I obtain :
 instead of :
instead of : 
- If I try to save a figure as a ".fig" and open it in Matlab, I don't have this message and I don't have any problem with the legend.
- I know that all these ".fig" don't have any problem as I created them one month ago only and opened them a lot of time from my former computer.
So, do you have an idea ? Here is one of these figures as a ".fig", can you try to open it and tell me if you have the same issue ? 
I thank you in advance, 
Alexandre 
0 Comments
Accepted Answer
  Nikhil Sonavane
    
 on 6 Feb 2020
        Even I could reproduce similar issue in MATLAB 2018a but it worked fine for later versions of MATLAB. I verified it for MATLAB 2019a and MATLAB 2019b. In your case upgrading may help.
More Answers (0)
See Also
Categories
				Find more on Legend 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!
