Skip to content

Commit

Permalink
Set Image/Raster NaN color to transparent
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Feb 11, 2018
1 parent b0528ef commit f1f2960
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions geoviews/plotting/bokeh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ class GeoPointPlot(GeoPlot, PointPlot):

class GeoRasterPlot(GeoPlot, RasterPlot):

clipping_colors = param.Dict(default={'NaN': (0, 0, 0, 0)}, doc="""
Dictionary to specify colors for clipped values, allows
setting color for NaN values and for values above and below
the min and max value. The min, max or NaN color may specify
an RGB(A) color as a color hex string of the form #FFFFFF or
#FFFFFFFF or a length 3 or length 4 tuple specifying values in
the range 0-1 or a named HTML color.""")

_project_operation = project_image.instance(fast=False)


Expand Down

0 comments on commit f1f2960

Please sign in to comment.