@@ -338,31 +338,70 @@ def show(*args, **kwargs):
338
338
339
339
340
340
def isinteractive ():
341
- """Return whether to redraw after every plotting command."""
341
+ """
342
+ Return if pyplot is in "interactive mode" or not.
343
+
344
+ If in interactive mode then:
345
+
346
+ - newly created figures will be shown immediately
347
+ - figures will automatically redraw on change
348
+ - pyplot.show will not block by default
349
+
350
+ If not in interactive mode then:
351
+
352
+ - newly created figures and changes to figures will
353
+ not be reflected until explicitly asked to be
354
+ - pyplot.show will block by default
355
+
356
+ See Also
357
+ --------
358
+ ion : enable interactive mode
359
+ ioff : disable interactive mode
360
+ """
342
361
return matplotlib .is_interactive ()
343
362
344
363
345
364
def ioff ():
346
- """Turn the interactive mode off."""
365
+ """
366
+ Turn the interactive mode off.
367
+
368
+ See Also
369
+ --------
370
+ ion : enable interactive mode
371
+ isinteractive : query current state
372
+
373
+ """
347
374
matplotlib .interactive (False )
348
375
uninstall_repl_displayhook ()
349
376
350
377
351
378
def ion ():
352
- """Turn the interactive mode on."""
379
+ """
380
+ Turn the interactive mode on.
381
+
382
+ See Also
383
+ --------
384
+ ioff : disable interactive mode
385
+ isinteractive : query current state
386
+ """
353
387
matplotlib .interactive (True )
354
388
install_repl_displayhook ()
355
389
356
390
357
391
def pause (interval ):
358
392
"""
359
- Pause for *interval* seconds.
393
+ Run the GUI event loop or sleep for *interval* seconds and .
360
394
361
395
If there is an active figure, it will be updated and displayed before the
362
396
pause, and the GUI event loop (if any) will run during the pause.
363
397
364
- This can be used for crude animation. For more complex animation, see
398
+ This can be used for crude animation. For more complex animation use
365
399
:mod:`matplotlib.animation`.
400
+
401
+ See Also
402
+ --------
403
+ matplotlib.animation : Complex animation
404
+ show : show figures and optional block forever
366
405
"""
367
406
manager = _pylab_helpers .Gcf .get_active ()
368
407
if manager is not None :
0 commit comments