@@ -1598,7 +1598,7 @@ def hillshade(self, elevation, vert_exag=1, dx=1, dy=1, fraction=1.):
1598
1598
1599
1599
return intensity
1600
1600
1601
- def shade (self , data , cmap , norm = None , blend_mode = 'hsv ' , vmin = None ,
1601
+ def shade (self , data , cmap , norm = None , blend_mode = 'overlay ' , vmin = None ,
1602
1602
vmax = None , vert_exag = 1 , dx = 1 , dy = 1 , fraction = 1 , ** kwargs ):
1603
1603
"""
1604
1604
Combine colormapped data values with an illumination intensity map
@@ -1618,15 +1618,16 @@ def shade(self, data, cmap, norm=None, blend_mode='hsv', vmin=None,
1618
1618
The normalization used to scale values before colormapping. If
1619
1619
None, the input will be linearly scaled between its min and max.
1620
1620
blend_mode : {'hsv', 'overlay', 'soft'} or callable, optional
1621
- The type of blending used to combine the colormapped data values
1622
- with the illumination intensity. For backwards compatibility, this
1623
- defaults to "hsv". Note that for most topographic surfaces,
1621
+ The type of blending used to combine the colormapped data
1622
+ values with the illumination intensity. Default is
1623
+ "overlay". Note that for most topographic surfaces,
1624
1624
"overlay" or "soft" appear more visually realistic. If a
1625
- user-defined function is supplied, it is expected to combine an
1626
- MxNx3 RGB array of floats (ranging 0 to 1) with an MxNx1 hillshade
1627
- array (also 0 to 1). (Call signature `func(rgb, illum, **kwargs)`)
1628
- Additional kwargs supplied to this function will be passed on to
1629
- the *blend_mode* function.
1625
+ user-defined function is supplied, it is expected to
1626
+ combine an MxNx3 RGB array of floats (ranging 0 to 1) with
1627
+ an MxNx1 hillshade array (also 0 to 1). (Call signature
1628
+ `func(rgb, illum, **kwargs)`) Additional kwargs supplied
1629
+ to this function will be passed on to the *blend_mode*
1630
+ function.
1630
1631
vmin : scalar or None, optional
1631
1632
The minimum value used in colormapping *data*. If *None* the
1632
1633
minimum value in *data* is used. If *norm* is specified, then this
0 commit comments