Skip to content

Commit

Permalink
Merge d030be5 into bc59fb8
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Apr 14, 2021
2 parents bc59fb8 + d030be5 commit 273f1ff
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions hvplot/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ class HoloViewsConverter(object):
---------------
colorbar (default=False): boolean
Enables colorbar
cnorm (default='linear'): str
Color scaling which must be one of 'linear', 'log' or 'eq_hist'
fontscale: number
Scales the size of all fonts by the same amount, e.g. fontscale=1.5
enlarges all fonts (title, xticks, labels etc.) by 50%
Expand Down Expand Up @@ -239,7 +241,7 @@ class HoloViewsConverter(object):
'aspect', 'data_aspect', 'fontscale']

_style_options = ['color', 'alpha', 'colormap', 'fontsize', 'c', 'cmap',
'color_key']
'color_key', 'cnorm']

_op_options = ['datashade', 'rasterize', 'x_sampling', 'y_sampling',
'aggregator']
Expand Down Expand Up @@ -313,7 +315,7 @@ def __init__(self, data, x, y, kind=None, by=None, use_index=True,
x_sampling=None, y_sampling=None, project=False,
tools=[], attr_labels=None, coastline=False,
tiles=False, sort_date=True, check_symmetric_max=1000000,
transforms={}, stream=None, **kwds):
transforms={}, stream=None, cnorm=None, **kwds):

# Process data and related options
self._redim = fields
Expand Down Expand Up @@ -501,6 +503,8 @@ def __init__(self, data, x, y, kind=None, by=None, use_index=True,
plot_opts['symmetric'] = symmetric
except TypeError:
pass
if cnorm is not None:
plot_opts['cnorm'] = cnorm

self._plot_opts = plot_opts
self._overlay_opts = {k: v for k, v in self._plot_opts.items()
Expand Down

0 comments on commit 273f1ff

Please sign in to comment.