Skip to content

Commit

Permalink
Fixes for setting fps on widgets and animations
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Mar 14, 2016
1 parent a944724 commit 9fc528b
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 @@ -204,7 +204,7 @@ def _anim_data(self, anim, fmt):
if extra_args != []:
anim_kwargs = dict(anim_kwargs, extra_args=extra_args)

if self.fps is not None: anim_kwargs['fps'] = max(int(self.fps), 1)
if self.fps is not None: anim_kwargs['fps'] = max([int(self.fps), 1])
if self.dpi is not None: anim_kwargs['dpi'] = self.dpi
if not hasattr(anim, '_encoded_video'):
with NamedTemporaryFile(suffix='.%s' % fmt) as f:
Expand Down
2 changes: 1 addition & 1 deletion holoviews/plotting/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def _validate(self, obj, fmt):
fmt = holomap_formats[0] if self.holomap=='auto' else self.holomap

if fmt in self.widgets:
plot = self.get_widget(plot, fmt)
plot = self.get_widget(plot, fmt, display_options={'fps': self.fps})
fmt = 'html'

all_formats = set(fig_formats + holomap_formats)
Expand Down

0 comments on commit 9fc528b

Please sign in to comment.