From f8a5e1e04c7592b2c287166cf4e15b15c2c650ff Mon Sep 17 00:00:00 2001 From: ahuang11 Date: Thu, 21 Feb 2019 20:35:15 -0800 Subject: [PATCH] Add clabel --- hvplot/converter.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/hvplot/converter.py b/hvplot/converter.py index 672a02d55..c38fa6fce 100644 --- a/hvplot/converter.py +++ b/hvplot/converter.py @@ -117,8 +117,8 @@ class HoloViewsConverter(object): xformatter/yformatter (default=None): str or TickFormatter Formatter for the x-axis and y-axis (accepts printf formatter, e.g. '%.3f', and bokeh TickFormatter) - xlabel/ylabel (default=None): str - Axis labels for the x-axis and y-axis + xlabel/ylabel/clabel (default=None): str + Axis labels for the x-axis, y-axis, and colorbar xlim/ylim (default=None): tuple Plot limits of the x- and y-axis xticks/yticks (default=None): int or list @@ -165,7 +165,7 @@ class HoloViewsConverter(object): 'rot', 'xlim', 'ylim', 'xticks', 'yticks', 'colorbar', 'invert', 'title', 'logx', 'logy', 'loglog', 'xaxis', 'yaxis', 'xformatter', 'yformatter', 'xlabel', 'ylabel', - 'padding'] + 'clabel', 'padding'] _style_options = ['color', 'alpha', 'colormap', 'fontsize', 'c'] @@ -225,8 +225,8 @@ def __init__(self, data, x, y, kind=None, by=None, use_index=True, precompute=False, flip_xaxis=False, flip_yaxis=False, dynspread=False, hover_cols=[], x_sampling=None, y_sampling=None, project=False, xlabel=None, ylabel=None, - xformatter=None, yformatter=None, tools=[], padding=None, - **kwds): + clabel=None, xformatter=None, yformatter=None, tools=[], + padding=None, **kwds): # Process data and related options self._process_data(kind, data, x, y, by, groupby, row, col, @@ -314,6 +314,8 @@ def __init__(self, data, x, y, kind=None, by=None, use_index=True, plot_opts['xlabel'] = xlabel if ylabel is not None: plot_opts['ylabel'] = ylabel + if clabel is not None: + plot_opts['clabel'] = clabel if xlim is not None: plot_opts['xlim'] = xlim if ylim is not None: