|
19 | 19 | C="cmap", |
20 | 20 | D="position", |
21 | 21 | G="truncate", |
22 | | - I="shading", |
23 | 22 | L="equalsize", |
24 | 23 | Q="log", |
25 | 24 | W="scale", |
|
29 | 28 | @kwargs_to_strings(G="sequence", I="sequence", p="sequence") |
30 | 29 | def colorbar( |
31 | 30 | self, |
| 31 | + shading: float | Sequence[float] | bool = False, |
32 | 32 | projection: str | None = None, |
33 | 33 | box: Box | bool = False, |
34 | 34 | region: Sequence[float | str] | str | None = None, |
@@ -64,6 +64,7 @@ def colorbar( |
64 | 64 |
|
65 | 65 | {aliases} |
66 | 66 | - F = box |
| 67 | + - I = shading |
67 | 68 | - J = projection |
68 | 69 | - R = region |
69 | 70 | - V = verbose |
@@ -110,12 +111,14 @@ def colorbar( |
110 | 111 | scale : float |
111 | 112 | Multiply all z-values in the CPT by the provided scale. By default, |
112 | 113 | the CPT is used as is. |
113 | | - shading : str, list, or bool |
114 | | - Add illumination effects. Passing a single numerical value sets the |
115 | | - range of intensities from -value to +value. If not specified, 1 is |
116 | | - used. Alternatively, set ``shading=[low, high]`` to specify an |
117 | | - asymmetric intensity range from *low* to *high*. [Default is no |
118 | | - illumination]. |
| 114 | + shading |
| 115 | + Add illumination effects [Default is no illumination]. |
| 116 | +
|
| 117 | + - If ``True``, a default intensity range of -1 to +1 is used. |
| 118 | + - Passing a single numerical value *max_intens* sets the range of intensities |
| 119 | + from *-max_intens* to *+max_intens*. |
| 120 | + - Passing a sequence of two numerical values (*low*, *high*) sets the intensity |
| 121 | + range from *low* to *high* to specify an asymmetric range. |
119 | 122 | equalsize : float or str |
120 | 123 | [**i**]\ [*gap*]. |
121 | 124 | Equal-sized color rectangles. By default, the rectangles are scaled |
@@ -162,6 +165,7 @@ def colorbar( |
162 | 165 |
|
163 | 166 | aliasdict = AliasSystem( |
164 | 167 | F=Alias(box, name="box"), |
| 168 | + I=Alias(shading, name="shading", sep="/", size=2), |
165 | 169 | ).add_common( |
166 | 170 | J=projection, |
167 | 171 | R=region, |
|
0 commit comments