How to disable figure pop up while initializing hggroup?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
I have a question, when i initialize a hggroup a figure pop up, setting visible to off in next line do not fix the problem. Do not know if there is a possability to disable the pop up of the figure, because it is annoying. Thanks for help.
hgfigures = hggroup;
hgfigures.Visible = 'off';
Respuestas (1)
Voss
el 13 de Mayo de 2022
hggroup() creates an hggroup in the current axes in the current figure.
If there is no current figure, then a new figure is created and made the current figure. If there is no current axes, then a new axes is created in the current figure and made the current axes. Finally, an hggroup is created.
If you want to create an hggroup in a new figure that's invisible, then create the invisible figure right before creating the hggroup:
figure('Visible','off'); % creates an invisible figure
my_group = hggroup(); % creates an axes then an hggroup
Better is to store handles to the graphics objects (figure, axes, etc.) you create and use the handles to specify where other objects belong:
my_fig = figure('Visible','off');
my_ax = axes(my_fig); % creates an axes in my_fig
my_group = hggroup(my_ax); % creates an hggroup in my_ax
0 comentarios
Ver también
Categorías
Más información sobre Colormaps 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!