Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0f5840c

Browse files
committed
add ioff/ion context api note
1 parent 7277226 commit 0f5840c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ioff and ion can be used as context managers
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
``plt.ion()`` and ``plt.ioff()`` may now be used as context managers to create
5+
a context with interactive mode off, or on respectively. The old behavior of
6+
calling these functions was maintained. To use the new functionality
7+
call as ``with plt.ioff():``

0 commit comments

Comments
 (0)