Python module to wait for all graphical figures to close before continuing
the deployed application to process graphics events. The purpose of
myDeployedModule.wait_for_figures_to_close() is to
block execution of a calling program as long as figures created in deployed
MATLAB® code are displayed.
This function can only be called after
been called and before
terminate() has been called. If
this function is not called, any figure windows initially displayed by the
application briefly appear, and then the application exits.
Keep a Figure in MATLAB Function Open
This example shows how to keep a MATLAB plot open after it is invoked using the
showplot function in a package named
import myDeployedModule myobj = myDeployedModule.initialize() myobj.showplot() myobj.wait_for_figures_to_close() myobj.terminate()