Skip to content

Commit fb5c56d

Browse files
DOC
1 parent 2a4e85d commit fb5c56d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

surfer/viz.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2165,6 +2165,12 @@ def save_movie(self, fname, time_dilation=4., tmin=None, tmax=None,
21652165
bitrate=None, **kwargs):
21662166
"""Save a movie (for data with a time axis)
21672167
2168+
The movie is created through the :mod:`imageio` module. The format is
2169+
determined by the extension, and additional options can be specified
2170+
through keyword arguments that depend on the format. For available
2171+
formats and corresponding parameters see the imageio documentation:
2172+
http://imageio.readthedocs.io/en/latest/formats.html#multiple-images
2173+
21682174
.. Warning::
21692175
This method assumes that time is specified in seconds when adding
21702176
data. If time is specified in milliseconds this will result in
@@ -2173,7 +2179,9 @@ def save_movie(self, fname, time_dilation=4., tmin=None, tmax=None,
21732179
Parameters
21742180
----------
21752181
fname : str
2176-
Path at which to save the movie.
2182+
Path at which to save the movie. The extension determines the
2183+
format (e.g., `'*.mov'`, `'*.gif'`, ...; see the :mod:`imageio`
2184+
documenttion for available formats).
21772185
time_dilation : float
21782186
Factor by which to stretch time (default 4). For example, an epoch
21792187
from -100 to 600 ms lasts 700 ms. With ``time_dilation=4`` this
@@ -2188,6 +2196,8 @@ def save_movie(self, fname, time_dilation=4., tmin=None, tmax=None,
21882196
Interpolation method (``scipy.interpolate.interp1d`` parameter,
21892197
one of 'linear' | 'nearest' | 'zero' | 'slinear' | 'quadratic' |
21902198
'cubic', default 'quadratic').
2199+
additional keywords :
2200+
Specify additional options for :mod:`imageio`.
21912201
21922202
Notes
21932203
-----

0 commit comments

Comments
 (0)