I am using the suptitle.m file to add a main title on a figure with 3 subplots. Each subplot has its own legend. After I issue the suptitle command, the legend for the last plot disappears. Has anyone else seen this before? How do I fix this?
The same question was asked 10 years ago on Matworks, with no answers.
http://www.mathworks.com/matlabcentral/newsreader/view_thread/44980
Extra
If I plot the figure, and then manipulate the legends positions. And then sets the suptitle, it is the last legend that has been manipulated, which is hidden behind the plots. This would seem like some information is hidden in memory that is used by suptitle.m
suptitle()
is a helper function for a demo and that some parameters are set manually inside the code and this is probably what causes your problem. It even comes with a warning: "Warning: If the figure or axis units are non-default, this will break." The workaround given by @Naveen below should work. - Ghaul