Return whether plots are updated after every plotting command. The interactive mode is mainly useful if you build plots from the command line and want to see the effect of each command while you are building the figure. In interactive mode: - newly created figures will be
()
| 647 | |
| 648 | |
| 649 | def isinteractive() -> bool: |
| 650 | """ |
| 651 | Return whether plots are updated after every plotting command. |
| 652 | |
| 653 | The interactive mode is mainly useful if you build plots from the command |
| 654 | line and want to see the effect of each command while you are building the |
| 655 | figure. |
| 656 | |
| 657 | In interactive mode: |
| 658 | |
| 659 | - newly created figures will be shown immediately; |
| 660 | - figures will automatically redraw on change; |
| 661 | - `.pyplot.show` will not block by default. |
| 662 | |
| 663 | In non-interactive mode: |
| 664 | |
| 665 | - newly created figures and changes to figures will not be reflected until |
| 666 | explicitly asked to be; |
| 667 | - `.pyplot.show` will block by default. |
| 668 | |
| 669 | See Also |
| 670 | -------- |
| 671 | ion : Enable interactive mode. |
| 672 | ioff : Disable interactive mode. |
| 673 | show : Show all figures (and maybe block). |
| 674 | pause : Show all figures, and block for a time. |
| 675 | """ |
| 676 | return matplotlib.is_interactive() |
| 677 | |
| 678 | |
| 679 | # Note: The return type of ioff being AbstractContextManager |