Skip to content

Commit c66476e

Browse files
committed
renames "wrapping" to "cyclic" color maps
1 parent 3fda6a7 commit c66476e

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

doc/users/next_whats_new/wrapping_colormaps.rst renamed to doc/users/next_whats_new/cyclic_colormaps.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Wrapping colormaps
2-
------------------
1+
Cyclic colormaps
2+
----------------
33

44
Two new colormaps named 'twilight' and 'twilight_shifted' were added.
55
These colormaps start and end on the same color, and have two

examples/color/colormap_reference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
('Diverging', [
3030
'PiYG', 'PRGn', 'BrBG', 'PuOr', 'RdGy', 'RdBu',
3131
'RdYlBu', 'RdYlGn', 'Spectral', 'coolwarm', 'bwr', 'seismic']),
32-
('Wrapping', ['twilight', 'twilight_shifted', 'hsv']),
32+
('Cyclic', ['twilight', 'twilight_shifted', 'hsv']),
3333
('Qualitative', [
3434
'Pastel1', 'Pastel2', 'Paired', 'Accent',
3535
'Dark2', 'Set1', 'Set2', 'Set3',

tutorials/colors/colormaps.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
middle value, such as topography or when the data deviates around
5757
zero.
5858
59-
3. Wrapping: change in lightness of two different colors that meet in
59+
3. Cyclic: change in lightness of two different colors that meet in
6060
the middle and beginning/end at an unsaturated color; should be
6161
used for values that wrap around at the endpoints, such as phase
6262
angle, wind direction, or time of day.
@@ -130,24 +130,24 @@
130130
'RdYlBu', 'RdYlGn', 'Spectral', 'coolwarm', 'bwr', 'seismic']
131131

132132
###############################################################################
133-
# Wrapping
134-
# --------
133+
# Cyclic
134+
# ------
135135
#
136-
# For Wrapping maps, we want to start and end on the same color, and meet a
136+
# For Cyclic maps, we want to start and end on the same color, and meet a
137137
# symmetric center point in the middle. :math:`L^*` should change monotonically
138138
# from start to middle, and inversely from middle to end. It should be symmetric
139139
# on the increasing and decreasing side, and only differ in hue. At the ends and
140140
# middle, :math:`L^*` will reverse direction, which should be smoothed in
141141
# :math:`L^*` space to reduce artifacts. See [kovesi-colormaps]_ for more
142-
# information on the design of wrapping maps.
142+
# information on the design of cyclic maps.
143143
#
144144
# The often-used HSV colormap is included in this set of colormaps, although it
145145
# is not symmetric to a center point. Additionally, the :math:`L^*` values vary
146146
# widely throughout the colormap, making it a poor choice for representing data
147147
# for viewers to see perceptually. See an extension on this idea at
148148
# [mycarta-jet]_.
149149

150-
cmaps['Wrapping'] = ['twilight', 'twilight_shifted', 'hsv']
150+
cmaps['Cyclic'] = ['twilight', 'twilight_shifted', 'hsv']
151151

152152
###############################################################################
153153
# Qualitative
@@ -231,12 +231,12 @@ def plot_color_gradients(cmap_category, cmap_list, nrows):
231231

232232
# Number of colormap per subplot for particular cmap categories
233233
_DSUBS = {'Perceptually Uniform Sequential': 5, 'Sequential': 6,
234-
'Sequential (2)': 6, 'Diverging': 6, 'Wrapping': 3,
234+
'Sequential (2)': 6, 'Diverging': 6, 'Cyclic': 3,
235235
'Qualitative': 4, 'Miscellaneous': 6}
236236

237237
# Spacing between the colormaps of a subplot
238238
_DC = {'Perceptually Uniform Sequential': 1.4, 'Sequential': 0.7,
239-
'Sequential (2)': 1.4, 'Diverging': 1.4, 'Wrapping': 1.4,
239+
'Sequential (2)': 1.4, 'Diverging': 1.4, 'Cyclic': 1.4,
240240
'Qualitative': 1.4, 'Miscellaneous': 1.4}
241241

242242
# Indices to step through colormap
@@ -286,7 +286,7 @@ def plot_color_gradients(cmap_category, cmap_list, nrows):
286286
if cmap_category in ('Perceptually Uniform Sequential',
287287
'Sequential'):
288288
locs.append(x[-1] + j*dc)
289-
elif cmap_category in ('Diverging', 'Qualitative', 'Wrapping',
289+
elif cmap_category in ('Diverging', 'Qualitative', 'Cyclic',
290290
'Miscellaneous', 'Sequential (2)'):
291291
locs.append(x[int(x.size/2.)] + j*dc)
292292

0 commit comments

Comments
 (0)