@@ -1676,25 +1676,23 @@ def shade(self, data, cmap, norm=None, blend_mode='overlay', vmin=None,
1676
1676
data : array-like
1677
1677
A 2d array (or equivalent) of the height values used to generate a
1678
1678
shaded map.
1679
- cmap : `~ matplotlib.colors.Colormap` instance
1679
+ cmap : matplotlib.colors.Colormap
1680
1680
The colormap used to color the *data* array. Note that this must be
1681
- a `~matplotlib.colors.Colormap` instance. For example, rather than
1681
+ a `~matplotlib.colors.Colormap` instance. For example, rather than
1682
1682
passing in `cmap='gist_earth'`, use
1683
- `cmap=plt.get_cmap('gist_earth')` instead.
1684
- norm : `~ matplotlib.colors.Normalize` instance , optional
1683
+ `` cmap=plt.get_cmap('gist_earth')` ` instead.
1684
+ norm : matplotlib.colors.Normalize, optional
1685
1685
The normalization used to scale values before colormapping. If
1686
1686
None, the input will be linearly scaled between its min and max.
1687
1687
blend_mode : {'hsv', 'overlay', 'soft'} or callable, optional
1688
- The type of blending used to combine the colormapped data
1689
- values with the illumination intensity. Default is
1690
- "overlay". Note that for most topographic surfaces,
1691
- "overlay" or "soft" appear more visually realistic. If a
1692
- user-defined function is supplied, it is expected to
1693
- combine an MxNx3 RGB array of floats (ranging 0 to 1) with
1694
- an MxNx1 hillshade array (also 0 to 1). (Call signature
1695
- `func(rgb, illum, **kwargs)`) Additional kwargs supplied
1696
- to this function will be passed on to the *blend_mode*
1697
- function.
1688
+ The type of blending used to combine the colormapped data values
1689
+ with the illumination intensity. Default is "overlay". Note that
1690
+ for most topographic surfaces, "overlay" or "soft" appear more
1691
+ visually realistic. If a user-defined function is supplied, it is
1692
+ expected to combine an MxNx3 RGB array of floats (ranging 0 to
1693
+ 1) with an MxNx1 hillshade array (also 0 to 1). (Call signature
1694
+ ``func(rgb, illum, **kwargs)``) Additional kwargs supplied to this
1695
+ function will be passed on to the *blend_mode* function.
1698
1696
vmin : scalar or None, optional
1699
1697
The minimum value used in colormapping *data*. If *None* the
1700
1698
minimum value in *data* is used. If *norm* is specified, then this
0 commit comments