@@ -1110,8 +1110,8 @@ class ListedColormap(Colormap):
11101110 Parameters
11111111 ----------
11121112 colors : list, array
1113- List of Matplotlib color specifications, or an equivalent Nx3 or Nx4
1114- floating point array (*N* RGB or RGBA values).
1113+ Sequence of Matplotlib color specifications (color names or RGB(A)
1114+ values).
11151115 name : str, optional
11161116 String to identify the colormap.
11171117 N : int, optional
@@ -2370,8 +2370,8 @@ def shade(self, data, cmap, norm=None, blend_mode='overlay', vmin=None,
23702370 "overlay". Note that for most topographic surfaces,
23712371 "overlay" or "soft" appear more visually realistic. If a
23722372 user-defined function is supplied, it is expected to
2373- combine an MxNx3 RGB array of floats (ranging 0 to 1) with
2374- an MxNx1 hillshade array (also 0 to 1). (Call signature
2373+ combine an (M, N, 3) RGB array of floats (ranging 0 to 1) with
2374+ an (M, N, 1) hillshade array (also 0 to 1). (Call signature
23752375 ``func(rgb, illum, **kwargs)``) Additional kwargs supplied
23762376 to this function will be passed on to the *blend_mode*
23772377 function.
@@ -2404,7 +2404,7 @@ def shade(self, data, cmap, norm=None, blend_mode='overlay', vmin=None,
24042404 Returns
24052405 -------
24062406 `~numpy.ndarray`
2407- An MxNx4 array of floats ranging between 0-1.
2407+ An (M, N, 4) array of floats ranging between 0-1.
24082408 """
24092409 if vmin is None :
24102410 vmin = data .min ()
@@ -2445,8 +2445,8 @@ def shade_rgb(self, rgb, elevation, fraction=1., blend_mode='hsv',
24452445 defaults to "hsv". Note that for most topographic surfaces,
24462446 "overlay" or "soft" appear more visually realistic. If a
24472447 user-defined function is supplied, it is expected to combine an
2448- MxNx3 RGB array of floats (ranging 0 to 1) with an MxNx1 hillshade
2449- array (also 0 to 1). (Call signature
2448+ (M, N, 3) RGB array of floats (ranging 0 to 1) with an (M, N, 1)
2449+ hillshade array (also 0 to 1). (Call signature
24502450 ``func(rgb, illum, **kwargs)``)
24512451 Additional kwargs supplied to this function will be passed on to
24522452 the *blend_mode* function.
@@ -2512,9 +2512,9 @@ def blend_hsv(self, rgb, intensity, hsv_max_sat=None, hsv_max_val=None,
25122512 Parameters
25132513 ----------
25142514 rgb : `~numpy.ndarray`
2515- An MxNx3 RGB array of floats ranging from 0 to 1 (color image).
2515+ An (M, N, 3) RGB array of floats ranging from 0 to 1 (color image).
25162516 intensity : `~numpy.ndarray`
2517- An MxNx1 array of floats ranging from 0 to 1 (grayscale image).
2517+ An (M, N, 1) array of floats ranging from 0 to 1 (grayscale image).
25182518 hsv_max_sat : number, default: 1
25192519 The maximum saturation value that the *intensity* map can shift the
25202520 output image to.
@@ -2531,7 +2531,7 @@ def blend_hsv(self, rgb, intensity, hsv_max_sat=None, hsv_max_val=None,
25312531 Returns
25322532 -------
25332533 `~numpy.ndarray`
2534- An MxNx3 RGB array representing the combined images.
2534+ An (M, N, 3) RGB array representing the combined images.
25352535 """
25362536 # Backward compatibility...
25372537 if hsv_max_sat is None :
@@ -2574,14 +2574,14 @@ def blend_soft_light(self, rgb, intensity):
25742574 Parameters
25752575 ----------
25762576 rgb : `~numpy.ndarray`
2577- An MxNx3 RGB array of floats ranging from 0 to 1 (color image).
2577+ An (M, N, 3) RGB array of floats ranging from 0 to 1 (color image).
25782578 intensity : `~numpy.ndarray`
2579- An MxNx1 array of floats ranging from 0 to 1 (grayscale image).
2579+ An (M, N, 1) array of floats ranging from 0 to 1 (grayscale image).
25802580
25812581 Returns
25822582 -------
25832583 `~numpy.ndarray`
2584- An MxNx3 RGB array representing the combined images.
2584+ An (M, N, 3) RGB array representing the combined images.
25852585 """
25862586 return 2 * intensity * rgb + (1 - 2 * intensity ) * rgb ** 2
25872587
@@ -2592,14 +2592,14 @@ def blend_overlay(self, rgb, intensity):
25922592 Parameters
25932593 ----------
25942594 rgb : `~numpy.ndarray`
2595- An MxNx3 RGB array of floats ranging from 0 to 1 (color image).
2595+ An (M, N, 3) RGB array of floats ranging from 0 to 1 (color image).
25962596 intensity : `~numpy.ndarray`
2597- An MxNx1 array of floats ranging from 0 to 1 (grayscale image).
2597+ An (M, N, 1) array of floats ranging from 0 to 1 (grayscale image).
25982598
25992599 Returns
26002600 -------
26012601 ndarray
2602- An MxNx3 RGB array representing the combined images.
2602+ An (M, N, 3) RGB array representing the combined images.
26032603 """
26042604 low = 2 * intensity * rgb
26052605 high = 1 - 2 * (1 - intensity ) * (1 - rgb )
0 commit comments