Skip to content

Commit

Permalink
change name to pu_or
Browse files Browse the repository at this point in the history
  • Loading branch information
mkborregaard committed Feb 28, 2017
1 parent f649698 commit c13ecc0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 12 deletions.
14 changes: 14 additions & 0 deletions src/gradients/colorbrewer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,20 @@ register_gradient_colors(:RdGy, [
# RGB(253/255, 218/255, 236/255),
# RGB(242/255, 242/255, 242/255)], :colorbrewer)

register_gradient_colors(:PuOr, [
RGB(127/255, 59/255, 8/255),
RGB(179/255, 88/255, 6/255),
RGB(224/255, 130/255, 20/255),
RGB(253/255, 184/255, 99/255),
RGB(254/255, 224/255, 182/255),
RGB(247/255, 247/255, 247/255),
RGB(216/255, 218/255, 235/255),
RGB(178/255, 171/255, 210/255),
RGB(128/255, 115/255, 172/255),
RGB(84/255, 39/255, 136/255),
RGB(45/255, 0/255, 75/255)], :colorbrewer)


register_gradient_colors(:OrRd, [
RGB(255/255, 247/255, 236/255),
RGB(254/255, 232/255, 200/255),
Expand Down
24 changes: 12 additions & 12 deletions src/gradients/matplotlib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

# note: to use the full arrays, just take out the second param (n) from the sample_evenly calls

register_color_library(:Plots, ColorLibrary(Dict(:default => :sequential, :sequential => :inferno, :diverging => :PuOr)))
register_color_library(:Plots, ColorLibrary(Dict(:default => :sequential, :sequential => :inferno, :diverging => :pu_or)))

register_gradient_colors(:magma, sample_evenly([
RGB(0.001462, 0.000466, 0.013866),
Expand Down Expand Up @@ -1061,18 +1061,18 @@ register_gradient_colors(:viridis, sample_evenly([



register_gradient_colors(:PuOr, [
RGB(127/255, 59/255, 8/255),
RGB(179/255, 88/255, 6/255),
RGB(224/255, 130/255, 20/255),
RGB(253/255, 184/255, 99/255),
RGB(254/255, 224/255, 182/255),
RGB(247/255, 247/255, 247/255),
RGB(216/255, 218/255, 235/255),
RGB(178/255, 171/255, 210/255),
RGB(128/255, 115/255, 172/255),
register_gradient_colors(:pu_or, [
RGB(45/255, 0/255, 75/255),
RGB(84/255, 39/255, 136/255),
RGB(45/255, 0/255, 75/255)], :Plots)
RGB(128/255, 115/255, 172/255),
RGB(178/255, 171/255, 210/255),
RGB(216/255, 218/255, 235/255),
RGB(247/255, 247/255, 247/255),
RGB(254/255, 224/255, 182/255),
RGB(253/255, 184/255, 99/255),
RGB(224/255, 130/255, 20/255),
RGB(179/255, 88/255, 6/255),
RGB(127/255, 59/255, 8/255)], :Plots)

# end of Plots colormaps
# ----------------------------------------------------------------------
Expand Down

0 comments on commit c13ecc0

Please sign in to comment.