Skip to content

Commit

Permalink
Fixed bug in matplotlib pdf exporting
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Dec 11, 2015
1 parent 885bc2f commit 8f164ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion holoviews/plotting/mpl/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def validate(cls, options):
"""
Validates a dictionary of options set on the backend.
"""
if options['fig']=='pdf' and not cls.options['fig'] == 'pdf':
if options['fig']=='pdf':
outputwarning.warning("PDF output is experimental, may not be supported"
"by your browser and may change in future.")

Expand Down
2 changes: 1 addition & 1 deletion holoviews/plotting/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ def html(self, obj, fmt=None, css=None):
"""
plot, fmt = self._validate(obj, fmt)
figdata, _ = self(plot, fmt)
if css is None: css = self.css

if fmt in ['html', 'json']:
return figdata
Expand All @@ -220,7 +221,6 @@ def html(self, obj, fmt=None, css=None):
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 8f164ed

Please sign in to comment.