@@ -2088,7 +2088,6 @@ def save_montage(self, filename, order=['lat', 'ven', 'med'],
2088
2088
return out
2089
2089
2090
2090
def save_movie (self , fname , time_dilation = 4. , tmin = None , tmax = None ,
2091
- montage = 'current' , colorbar = 'auto' , border_size = 15 ,
2092
2091
framerate = 25 , interpolation = 'quadratic' , codec = 'mpeg4' ):
2093
2092
"""Save a movie (for data with a time axis)
2094
2093
@@ -2109,25 +2108,13 @@ def save_movie(self, fname, time_dilation=4., tmin=None, tmax=None,
2109
2108
First time point to include (default: all data).
2110
2109
tmax : float
2111
2110
Last time point to include (default: all data).
2112
- montage: 'current' | list
2113
- Views to include in the images: 'current' (default) uses the
2114
- currently displayed image; a 1 or 2 dimensional list
2115
- can be used to specify a complete montage. Examples:
2116
- ``['lat', 'med']`` lateral and ventral views ordered horizontally;
2117
- ``[['fro'], ['ven']]`` frontal and ventral views ordered vertically.
2118
- colorbar: 'auto' | int | list of int | None
2119
- For 'auto', the colorbar is shown in the middle view (default).
2120
- For int or list of int, the colorbar is shown in the specified
2121
- views. For ``None``, no colorbar is shown.
2122
- border_size: int
2123
- Size of image border for montage (more or less space between images)
2124
2111
framerate : float
2125
2112
Framerate of the movie (frames per second, default 25).
2126
2113
interpolation : str
2127
2114
Interpolation method (``scipy.interpolate.interp1d`` parameter,
2128
2115
default 'quadratic').
2129
2116
codec : str
2130
- Codec to use (default 'mpeg4').
2117
+ Codec to use with ffmpeg (default 'mpeg4').
2131
2118
"""
2132
2119
if not has_ffmpeg ():
2133
2120
err = ("FFmpeg is needed for saving movies and was not found in "
@@ -2167,7 +2154,7 @@ def save_movie(self, fname, time_dilation=4., tmin=None, tmax=None,
2167
2154
frame_pattern = 'frame%%0%id.png' % (np .floor (np .log10 (n_times )) + 1 )
2168
2155
fname_pattern = os .path .join (tempdir , frame_pattern )
2169
2156
self .save_image_sequence (time_idx , fname_pattern , False , - 1 , - 1 ,
2170
- montage , border_size , colorbar , interpolation )
2157
+ 'current' , interpolation = interpolation )
2171
2158
ffmpeg (fname , fname_pattern , framerate , codec )
2172
2159
2173
2160
def animate (self , views , n_steps = 180. , fname = None , use_cache = False ,
0 commit comments