causes a figure's 'Visible' property to be set to 'on' (I had turned it off to save time and resources). A better solution might be:
which updates the current axis without changing the state of the parent figure, as documented in the help file for the "axes" command (doc axes). I don't know how that will affect the order of the figure's 'Children' property though.
As Kris Thielemans points out, if you specify a Y offset without specifying an X offset, the value will be applied to the title's X offset. The user can circumvent the bug by specifying a 0 offset for x in the command call. The bug can be fixed in the code by moving line 155 ("io=io+1;") in the "get_off" function to before the if statement (say to a new line 154).
mtit ('Vz=25', 'FontWeight','bold');
when use this command to have a title for my subplots
It displays an error like the one shown below
??? Undefined function or method 'mtit' for input arguments of type 'char'.
However, I had trouble with the 'xoff', 'yoff', etc. options. When specifying just one of these, the title moved horizontally no matter which of these offsets was entered. I exchanged lines 154 and 155 in the code:
and now the offsets work individually or together.
this happens by design:
after MTIT terminates, the current (active) axis (GCA) is the handle of the invisible surrounding axis created by MTIT...
i've changed this behavior and an update should show up soon...
in the meantime, you can use this (tedious) approach
% create your figure/axes
cah=gca; % <- save current axis handle
axes(cah); % <- reset current axis handle