Skip to content

Commit

Permalink
Fixed css option in Renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Nov 30, 2015
1 parent a4fd7c2 commit 0f5b57b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion holoviews/plotting/renderer.py
Expand Up @@ -157,7 +157,7 @@ def __call__(self, obj, fmt=None):
return None, {'file-ext':fmt, 'mime_type':MIME_TYPES[fmt]}


def html(self, obj, fmt=None, css={}):
def html(self, obj, fmt=None, css=None):
"""
Renders plot or data structure and wraps the output in HTML.
"""
Expand All @@ -175,6 +175,7 @@ def html(self, obj, fmt=None, css={}):
w,h = self.get_size(plot)
css['height'] = '%dpx' % (h*self.dpi*1.15)

if css is None: css = self.css
if isinstance(css, dict):
css = '; '.join("%s: %s" % (k, v) for k, v in css.items())
else:
Expand Down

0 comments on commit 0f5b57b

Please sign in to comment.