Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit d515502

Browse files
committedJun 27, 2014
Minor improvements to aminate documentation.
Some changes to make things look nicer: unified spacing and indenting, more reasonable size of output figure, and one cross reference so we don't have to duplicate documentation for online help.
1 parent 368dca2 commit d515502

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎src/sage/plot/animate.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
2222
The sine function::
2323
24-
sage: sines = [plot(c*sin(x), (-2*pi,2*pi), color=Color(c,0,0), ymin=-1,ymax=1) for c in sxrange(0,1,.2)]
24+
sage: sines = [plot(c*sin(x), (-2*pi,2*pi), color=Color(c,0,0), ymin=-1, ymax=1) for c in sxrange(0,1,.2)]
2525
sage: a = animate(sines)
2626
sage: a
2727
Animation with 5 frames
@@ -113,6 +113,8 @@ def animate(frames, **kwds):
113113
sage: t = var('t')
114114
sage: a = animate((cos(c*pi*t) for c in sxrange(1,2,.2)))
115115
sage: a.show() # optional -- ImageMagick
116+
117+
See also :mod:`sage.plot.animate` for more examples.
116118
"""
117119
return Animation(frames, **kwds)
118120

@@ -177,7 +179,7 @@ class Animation(SageObject):
177179
We check that :trac:`7981` is fixed::
178180
179181
sage: a = animate([plot(sin(x + float(k)), (0, 2*pi), ymin=-5, ymax=5)
180-
....: for k in srange(0,2*pi,0.3)])
182+
....: for k in srange(0,2*pi,0.3)])
181183
sage: a.show() # optional -- ImageMagick
182184
183185
Do not convert input iterator to a list::
@@ -455,7 +457,7 @@ def graphics_array(self, ncols=3):
455457
456458
sage: g = a.graphics_array(); print g
457459
Graphics Array of size 2 x 3
458-
sage: g.show(figsize=[4,1]) # optional
460+
sage: g.show(figsize=[6,3]) # optional
459461
460462
Specify different arrangement of array and save with different file name::
461463

0 commit comments

Comments
 (0)
This repository has been archived.