8000
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 2458155 commit 7277226Copy full SHA for 7277226
lib/matplotlib/tests/test_pyplot.py
@@ -81,3 +81,27 @@ def test_nrows_error():
81
plt.subplot(nrows=1)
82
with pytest.raises(TypeError):
83
plt.subplot(ncols=1)
84
+
85
86
+def test_ioff_context():
87
+ mpl.interactive(True)
88
+ with plt.ioff():
89
+ assert not mpl.is_interactive
90
+ assert mpl.is_interactive
91
92
+ mpl.interactive(False)
93
94
95
96
97
98
+def test_ion_context():
99
100
101
102
103
104
105
+ with plt.ion():
106
107
0 commit comments