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 show_frame option for bokeh plots #1013

Merged
merged 1 commit into from
Dec 11, 2016
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
6 changes: 6 additions & 0 deletions holoviews/plotting/bokeh/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ class ElementPlot(BokehPlot, GenericElementPlot):
* timeout - Timeout (in ms) for checking whether interactive
tool events are still occurring.""")

show_frame = param.Boolean(default=True, doc="""
Whether or not to show a complete frame around the plot.""")

show_grid = param.Boolean(default=True, doc="""
Whether to show a Cartesian grid on the plot.""")

Expand Down Expand Up @@ -342,6 +345,9 @@ def _init_plot(self, key, element, plots, ranges=None):
properties['x_axis_label'] = xlabel if 'x' in self.labelled else ' '
properties['y_axis_label'] = ylabel if 'y' in self.labelled else ' '

if not self.show_frame:
properties['outline_line_alpha'] = 0

if self.show_title:
title = self._format_title(key, separator=' ')
else:
Expand Down