Skip to content

Commit e776ce7

Browse files
s7726rcomer
authored andcommitted
Add Returns documentation to to_jshtml function
1 parent cb9cf3b commit e776ce7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/animation.py

+6
Original file line numberDiff line numberDiff line change
@@ -1311,6 +1311,12 @@ def to_jshtml(self, fps=None, embed_frames=True, default_mode=None):
13111311
What to do when the animation ends. Must be one of ``{'loop',
13121312
'once', 'reflect'}``. Defaults to ``'loop'`` if the *repeat*
13131313
parameter is True, otherwise ``'once'``.
1314+
1315+
Returns
1316+
-------
1317+
str
1318+
An HTML representation of the animation embedded as a js object as
1319+
produced with the ``HTMLWriter``.
13141320
"""
13151321
if fps is None and hasattr(self, '_interval'):
13161322
# Convert interval in ms to frames per second

0 commit comments

Comments
 (0)