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

Skip to content

Commit 98fb775

Browse files
committed
Add deprecation notice for axes.color_cycle
1 parent 5fa07f2 commit 98fb775

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/matplotlib/rcsetup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,13 +301,13 @@ def validate_color(s):
301301

302302
raise ValueError('%s does not look like a color arg%s' % (s, msg))
303303

304+
304305
def deprecate_axes_colorcycle(value):
305306
warnings.warn("axes.color_cycle is deprecated. Use axes.prop_cycle "
306307
"instead. Will be removed in 2.1.0")
307308
return validate_colorlist(value)
308309

309310

310-
311311
def validate_colorlist(s):
312312
'return a list of colorspecs'
313313
if isinstance(s, six.string_types):
@@ -775,8 +775,8 @@ def __call__(self, s):
775775
'axes.formatter.useoffset': [True, validate_bool],
776776
'axes.unicode_minus': [True, validate_bool],
777777
'axes.color_cycle': [['b', 'g', 'r', 'c', 'm', 'y', 'k'],
778-
validate_colorlist], # cycle of plot
779-
# line colors
778+
deprecate_axes_colorcycle], # cycle of plot
779+
# line colors
780780
# This entry can be either a cycler object or a
781781
# string repr of a cycler-object, which gets eval()'ed
782782
# to create the object.

0 commit comments

Comments
 (0)