Skip to content

Commit

Permalink
Update to colors.TABLEAU_COLORS (ultralytics#2069)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Jan 28, 2021
1 parent 0021626 commit 07e0071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def color_list():
def hex2rgb(h):
return tuple(int(h[1 + i:1 + i + 2], 16) for i in (0, 2, 4))

return [hex2rgb(h) for h in plt.rcParams['axes.prop_cycle'].by_key()['color']]
return [hex2rgb(h) for h in matplotlib.colors.TABLEAU_COLORS.values()] # or BASE_ (8), CSS4_ (148), XKCD_ (949)


def hist2d(x, y, n=100):
Expand Down

0 comments on commit 07e0071

Please sign in to comment.