Skip to content

Commit

Permalink
Add clabel (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 authored and philippjfr committed Jul 4, 2019
1 parent b018152 commit 039e4a1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions hvplot/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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']

Expand Down Expand Up @@ -226,8 +226,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,
Expand Down Expand Up @@ -315,6 +315,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:
Expand Down

0 comments on commit 039e4a1

Please sign in to comment.