|
56 | 56 | middle value, such as topography or when the data deviates around
|
57 | 57 | zero.
|
58 | 58 |
|
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 |
60 | 60 | the middle and beginning/end at an unsaturated color; should be
|
61 | 61 | used for values that wrap around at the endpoints, such as phase
|
62 | 62 | angle, wind direction, or time of day.
|
|
130 | 130 | 'RdYlBu', 'RdYlGn', 'Spectral', 'coolwarm', 'bwr', 'seismic']
|
131 | 131 |
|
132 | 132 | ###############################################################################
|
133 |
| -# Wrapping |
134 |
| -# -------- |
| 133 | +# Cyclic |
| 134 | +# ------ |
135 | 135 | #
|
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 |
137 | 137 | # symmetric center point in the middle. :math:`L^*` should change monotonically
|
138 | 138 | # from start to middle, and inversely from middle to end. It should be symmetric
|
139 | 139 | # on the increasing and decreasing side, and only differ in hue. At the ends and
|
140 | 140 | # middle, :math:`L^*` will reverse direction, which should be smoothed in
|
141 | 141 | # :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. |
143 | 143 | #
|
144 | 144 | # The often-used HSV colormap is included in this set of colormaps, although it
|
145 | 145 | # is not symmetric to a center point. Additionally, the :math:`L^*` values vary
|
146 | 146 | # widely throughout the colormap, making it a poor choice for representing data
|
147 | 147 | # for viewers to see perceptually. See an extension on this idea at
|
148 | 148 | # [mycarta-jet]_.
|
149 | 149 |
|
150 |
| -cmaps['Wrapping'] = ['twilight', 'twilight_shifted', 'hsv'] |
| 150 | +cmaps['Cyclic'] = ['twilight', 'twilight_shifted', 'hsv'] |
151 | 151 |
|
152 | 152 | ###############################################################################
|
153 | 153 | # Qualitative
|
@@ -231,12 +231,12 @@ def plot_color_gradients(cmap_category, cmap_list, nrows):
|
231 | 231 |
|
232 | 232 | # Number of colormap per subplot for particular cmap categories
|
233 | 233 | _DSUBS = {'Perceptually Uniform Sequential': 5, 'Sequential': 6,
|
234 |
| - 'Sequential (2)': 6, 'Diverging': 6, 'Wrapping': 3, |
| 234 | + 'Sequential (2)': 6, 'Diverging': 6, 'Cyclic': 3, |
235 | 235 | 'Qualitative': 4, 'Miscellaneous': 6}
|
236 | 236 |
|
237 | 237 | # Spacing between the colormaps of a subplot
|
238 | 238 | _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, |
240 | 240 | 'Qualitative': 1.4, 'Miscellaneous': 1.4}
|
241 | 241 |
|
242 | 242 | # Indices to step through colormap
|
@@ -286,7 +286,7 @@ def plot_color_gradients(cmap_category, cmap_list, nrows):
|
286 | 286 | if cmap_category in ('Perceptually Uniform Sequential',
|
287 | 287 | 'Sequential'):
|
288 | 288 | locs.append(x[-1] + j*dc)
|
289 |
| - elif cmap_category in ('Diverging', 'Qualitative', 'Wrapping', |
| 289 | + elif cmap_category in ('Diverging', 'Qualitative', 'Cyclic', |
290 | 290 | 'Miscellaneous', 'Sequential (2)'):
|
291 | 291 | locs.append(x[int(x.size/2.)] + j*dc)
|
292 | 292 |
|
|
0 commit comments