Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b11f80 commit 7746cdfCopy full SHA for 7746cdf
lib/matplotlib/tests/test_pyplot.py
@@ -109,3 +109,23 @@ def test_ion():
109
with plt.ion():
110
assert mpl.is_interactive()
111
112
+
113
+def test_nested_ion_ioff():
114
+ plt.ion()
115
+ with plt.ioff():
116
+ assert not mpl.is_interactive()
117
+ with plt.ion():
118
+ assert mpl.is_interactive()
119
120
121
122
123
124
125
126
127
+ plt.ioff()
128
129
130
131
0 commit comments