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

Skip to content

Commit c926ba5

Browse files
committed
NF - added new feature to colors called shade_color to lighten or darken a given color by a given percentage (altered CC to ColorConverter)
1 parent 2834c09 commit c926ba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1505,7 +1505,7 @@ def shade_color(color, percent):
15051505
15061506
"""
15071507

1508-
cc = CC()
1508+
cc = ColorConverter()
15091509

15101510
rgb = cc.to_rgb(color)
15111511

0 commit comments

Comments
 (0)