def plot_pause(timeout=None, msg='<STR_LIT>'):
if timeout is not None:<EOL><INDENT>print(msg or '<STR_LIT>'.format(timeout))<EOL>plt.waitforbuttonpress(timeout=timeout)<EOL>return True<EOL><DEDENT>print(msg or '<STR_LIT>')<EOL>while not plt.waitforbuttonpress(timeout=<NUM_LIT>):<EOL><INDENT>if not plt.get_fignums():<EOL><INDENT>return False<EOL><DEDENT><DEDENT>return len(plt.get_fignums()) != <NUM_LIT:0><EOL>
todo : add some example
:param timeout: wait time. if None, blocking
:param msg:
:return: