Skip to content

Commit

Permalink
make register_cmap backward compatible wrt to argument order
Browse files Browse the repository at this point in the history
  • Loading branch information
golobor committed Aug 9, 2024
1 parent 566dd14 commit dcdf337
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cooltools/lib/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ def get_cmap(name):

def _register_cmaps():
for name, pal in PALETTES.items():
register_cmap(list_to_colormap(pal), name=name)
register_cmap(list_to_colormap(pal[::-1]), name=name + "_r")
register_cmap(cmap=list_to_colormap(pal), name=name)
register_cmap(cmap=list_to_colormap(pal[::-1]), name=name + "_r")


_register_cmaps()
Expand Down

0 comments on commit dcdf337

Please sign in to comment.