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 0abb51f commit cd77e0eCopy full SHA for cd77e0e
1 file changed
lib/matplotlib/tests/test_cycles.py
@@ -1,6 +1,7 @@
1
import warnings
2
3
from matplotlib.testing.decorators import image_comparison, cleanup
4
+from matplotlib.cbook import MatplotlibDeprecationWarning
5
import matplotlib.pyplot as plt
6
import numpy as np
7
from nose.tools import assert_raises
@@ -184,6 +185,7 @@ def test_cycle_reset():
184
185
fig, ax = plt.subplots()
186
# Need to double-check the old set/get_color_cycle(), too
187
with warnings.catch_warnings():
188
+ warnings.simplefilter("ignore", MatplotlibDeprecationWarning)
189
prop = next(ax._get_lines.prop_cycler)
190
ax.set_color_cycle(['c', 'm', 'y', 'k'])
191
assert prop != next(ax._get_lines.prop_cycler)
0 commit comments