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 d085fc3 commit 99cdccbCopy full SHA for 99cdccb
lib/matplotlib/tests/test_cycles.py
@@ -1,5 +1,6 @@
1
import warnings
2
3
+from matplotlib.cbook import 8F8C MatplotlibDeprecationWarning
4
from matplotlib.testing.decorators import image_comparison, cleanup
5
import matplotlib.pyplot as plt
6
import numpy as np
@@ -184,6 +185,11 @@ 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.filterwarnings(
189
+ 'ignore',
190
+ 'The set_color_cycle attribute was deprecated in version 1.5.',
191
+ MatplotlibDeprecationWarning)
192
+
193
prop = next(ax._get_lines.prop_cycler)
194
ax.set_color_cycle(['c', 'm', 'y', 'k'])
195
assert prop != next(ax._get_lines.prop_cycler)
0 commit comments