Using suptitle overrides ('visible', 'off') figure property
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
oxy
el 21 de Mzo. de 2014
Comentada: Walter Roberson
el 5 de Sept. de 2017
Hi all,
this problem has been reported elsewhere, but no solution yet. I m using this version of suptitle.m:
Here a sample code. If you are working in a remote computer without X forward or any X installed at all, you d like to avoid figures poping up like that.
fig1 = figure(1, 'visible', 'off')
subplot(2,1,1)
plot(1:3,1:3)
subplot(2,1,2)
plot(1:5,1:5)
suptitle('This is a bigger title')
Questions: Is there a fix? Is there a newer version of suptitle?
thx...
1 comentario
Walter Roberson
el 5 de Sept. de 2017
Note: the current version of suptitle is at https://github.com/probml/pmtk3/blob/master/matlabTools/graphics/suptitle.m
Respuesta aceptada
per isakson
el 22 de Mzo. de 2014
Editada: per isakson
el 22 de Mzo. de 2014
Try to comment out the line axes(haold); at the end of suptitle
....
% axes(haold);
if nargout,
hout=ht;
end
end
That helps on R2013a, Win7.
Doc says:
axes(h) makes existing axes h the current axes and brings the figure
containing it into focus.
I don't know if it is possible to make existing axes h the current without affecting the figure.
2 comentarios
Sergio Vidal
el 5 de Sept. de 2017
This issue is still not solved in 2017a version. This solution may not be fancy but solves the problem. Thanks.
Walter Roberson
el 5 de Sept. de 2017
You can set the figure CurrentAxes property to make an axes current without bringing it into focus.
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!