Skip to content

Commit 3fda6a7

Browse files
committed
reverses color order of twilight_shifted
1 parent dc166b3 commit 3fda6a7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/matplotlib/_cm_listed.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1799,6 +1799,7 @@
17991799

18001800
_twilight_shifted_data = (_twilight_data[len(_twilight_data)//2:] +
18011801
_twilight_data[:len(_twilight_data)//2])
1802+
_twilight_shifted_data.reverse()
18021803

18031804
cmaps = {}
18041805
for (name, data) in (('magma', _magma_data),

lib/matplotlib/pyplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,7 @@ def colormaps():
18161816
hsv red-yellow-green-cyan-blue-magenta-red, formed by changing
18171817
the hue component in the HSV color space
18181818
twilight perceptually uniform shades of white-blue-black-red-white
1819-
twilight_shifted perceptually uniform shades of black-red-white-blue-black
1819+
twilight_shifted perceptually uniform shades of black-blue-white-red-black
18201820
================ =========================================================
18211821
18221822

0 commit comments

Comments
 (0)