Skip to content

Commit

Permalink
add hash in front of hex color codes
Browse files Browse the repository at this point in the history
  • Loading branch information
etworcester committed Mar 27, 2024
1 parent c2aaffc commit 7c891b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/matplotlib/python/dunestyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ def SetDUNELogoColors():
""" Set the color cycler to use the subset of Okabe-Ito colors that overlap with the DUNE logo colors. """

from cycler import cycler
cyc = cycler(color=['D55E00', '56B4E9', 'E69F00'])
cyc = cycler(color=['#D55E00', '#56B4E9', '#E69F00'])
plt.rc("axes", prop_cycle=cyc)

def SetOkabeItoColors():
""" Set the color cycler to use Okabe-Ito colors.. """

from cycler import cycler
cyc = cycler(color=['000000', 'D55E00', '56B4E9', 'E69F00', '009E73', 'CC79A7', '0072B2', 'F0E442',])
cyc = cycler(color=['#000000', '#D55E00', '#56B4E9', '#E69F00', '#009E73', '#CC79A7', '#0072B2', '#F0E442',])
plt.rc("axes", prop_cycle=cyc)

0 comments on commit 7c891b4

Please sign in to comment.