Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clabel #176

Merged
merged 1 commit into from
Jul 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -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,
Expand Down Expand Up @@ -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:
Expand Down