| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | - Wrapping colormaps | ||
| 2 | - ------------------ | ||
| 1 | + Cyclic colormaps | ||
| 2 | + ---------------- | ||
| 3 | 3 | ||
| 4 | 4 | Two new colormaps named 'twilight' and 'twilight_shifted' were added. | |
| 5 | 5 | These colormaps start and end on the same color, and have two | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,7 +29,7 @@ | |||
| 29 | 29 | ('Diverging', [ | |
| 30 | 30 | 'PiYG', 'PRGn', 'BrBG', 'PuOr', 'RdGy', 'RdBu', | |
| 31 | 31 | 'RdYlBu', 'RdYlGn', 'Spectral', 'coolwarm', 'bwr', 'seismic']), | |
| 32 | - ('Wrapping', ['twilight', 'twilight_shifted', 'hsv']), | ||
| 32 | + ('Cyclic', ['twilight', 'twilight_shifted', 'hsv']), | ||
| 33 | 33 | ('Qualitative', [ | |
| 34 | 34 | 'Pastel1', 'Pastel2', 'Paired', 'Accent', | |
| 35 | 35 | 'Dark2', 'Set1', 'Set2', 'Set3', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -56,7 +56,7 @@ | |||
| 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,24 +130,24 @@ | |||
| 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 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments