@@ -403,8 +403,8 @@ def to_rgba_array(c, alpha=None):
403403 Parameters
404404 ----------
405405 c : Matplotlib color or array of colors
406- If *c* is a masked array, an ndarray is returned with a (0, 0, 0, 0)
407- row for each masked value or row in *c*.
406+ If *c* is a masked array, an `~numpy. ndarray` is returned with a
407+ (0, 0, 0, 0) row for each masked value or row in *c*.
408408
409409 alpha : float or sequence of floats, optional
410410 If *alpha* is given, force the alpha value of the returned RGBA tuple
@@ -684,11 +684,11 @@ def __call__(self, X, alpha=None, bytes=False):
684684 """
685685 Parameters
686686 ----------
687- X : float or int, ndarray or scalar
687+ X : float or int, `~numpy. ndarray` or scalar
688688 The data value(s) to convert to RGBA.
689- For floats, X should be in the interval ``[0.0, 1.0]`` to
689+ For floats, *X* should be in the interval ``[0.0, 1.0]`` to
690690 return the RGBA values ``X*100`` percent along the Colormap line.
691- For integers, X should be in the interval ``[0, Colormap.N)`` to
691+ For integers, *X* should be in the interval ``[0, Colormap.N)`` to
692692 return RGBA values *indexed* from the Colormap with index ``X``.
693693 alpha : float or array-like or None
694694 Alpha must be a scalar between 0 and 1, a sequence of such
@@ -2061,7 +2061,7 @@ def rgb_to_hsv(arr):
20612061
20622062 Returns
20632063 -------
2064- (..., 3) ndarray
2064+ (..., 3) `~numpy. ndarray`
20652065 Colors converted to HSV values in range [0, 1]
20662066 """
20672067 arr = np .asarray (arr )
@@ -2112,7 +2112,7 @@ def hsv_to_rgb(hsv):
21122112
21132113 Returns
21142114 -------
2115- (..., 3) ndarray
2115+ (..., 3) `~numpy. ndarray`
21162116 Colors converted to RGB values in range [0, 1]
21172117 """
21182118 hsv = np .asarray (hsv )
@@ -2279,7 +2279,7 @@ def hillshade(self, elevation, vert_exag=1, dx=1, dy=1, fraction=1.):
22792279
22802280 Returns
22812281 -------
2282- ndarray
2282+ `~numpy. ndarray`
22832283 A 2D array of illumination values between 0-1, where 0 is
22842284 completely in shadow and 1 is completely illuminated.
22852285 """
@@ -2322,7 +2322,7 @@ def shade_normals(self, normals, fraction=1.):
23222322
23232323 Returns
23242324 -------
2325- ndarray
2325+ `~numpy. ndarray`
23262326 A 2D array of illumination values between 0-1, where 0 is
23272327 completely in shadow and 1 is completely illuminated.
23282328 """
@@ -2404,7 +2404,7 @@ def shade(self, data, cmap, norm=None, blend_mode='overlay', vmin=None,
24042404
24052405 Returns
24062406 -------
2407- ndarray
2407+ `~numpy. ndarray`
24082408 An MxNx4 array of floats ranging between 0-1.
24092409 """
24102410 if vmin is None :
@@ -2465,7 +2465,7 @@ def shade_rgb(self, rgb, elevation, fraction=1., blend_mode='hsv',
24652465
24662466 Returns
24672467 -------
2468- ndarray
2468+ `~numpy. ndarray`
24692469 An (m, n, 3) array of floats ranging between 0-1.
24702470 """
24712471 # Calculate the "hillshade" intensity.
@@ -2512,9 +2512,9 @@ def blend_hsv(self, rgb, intensity, hsv_max_sat=None, hsv_max_val=None,
25122512
25132513 Parameters
25142514 ----------
2515- rgb : ndarray
2515+ rgb : `~numpy. ndarray`
25162516 An MxNx3 RGB array of floats ranging from 0 to 1 (color image).
2517- intensity : ndarray
2517+ intensity : `~numpy. ndarray`
25182518 An MxNx1 array of floats ranging from 0 to 1 (grayscale image).
25192519 hsv_max_sat : number, default: 1
25202520 The maximum saturation value that the *intensity* map can shift the
@@ -2531,7 +2531,7 @@ def blend_hsv(self, rgb, intensity, hsv_max_sat=None, hsv_max_val=None,
25312531
25322532 Returns
25332533 -------
2534- ndarray
2534+ `~numpy. ndarray`
25352535 An MxNx3 RGB array representing the combined images.
25362536 """
25372537 # Backward compatibility...
@@ -2574,14 +2574,14 @@ def blend_soft_light(self, rgb, intensity):
25742574
25752575 Parameters
25762576 ----------
2577- rgb : ndarray
2577+ rgb : `~numpy. ndarray`
25782578 An MxNx3 RGB array of floats ranging from 0 to 1 (color image).
2579- intensity : ndarray
2579+ intensity : `~numpy. ndarray`
25802580 An MxNx1 array of floats ranging from 0 to 1 (grayscale image).
25812581
25822582 Returns
25832583 -------
2584- ndarray
2584+ `~numpy. ndarray`
25852585 An MxNx3 RGB array representing the combined images.
25862586 """
25872587 return 2 * intensity * rgb + (1 - 2 * intensity ) * rgb ** 2
@@ -2592,9 +2592,9 @@ def blend_overlay(self, rgb, intensity):
25922592
25932593 Parameters
25942594 ----------
2595- rgb : ndarray
2595+ rgb : `~numpy. ndarray`
25962596 An MxNx3 RGB array of floats ranging from 0 to 1 (color image).
2597- intensity : ndarray
2597+ intensity : `~numpy. ndarray`
25982598 An MxNx1 array of floats ranging from 0 to 1 (grayscale image).
25992599
26002600 Returns
0 commit comments