Skip to content

Commit adf8e48

Browse files
author
Matthias Koeppe
committed
More # optional
1 parent 59900f2 commit adf8e48

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/sage/plot/arc.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class Arc(GraphicPrimitive):
4545
4646
Note that the construction should be done using ``arc``::
4747
48+
sage: from math import pi
4849
sage: from sage.plot.arc import Arc
4950
sage: print(Arc(0,0,1,1,pi/4,pi/4,pi/2,{}))
5051
Arc with center (0.0,0.0) radii (1.0,1.0) angle 0.78539816339... inside the sector (0.78539816339...,1.5707963267...)
@@ -115,6 +116,7 @@ def get_minmax_data(self):
115116
116117
The same example with a rotation of angle `\pi/2`::
117118
119+
sage: from math import pi
118120
sage: p = arc((-2, 3), 1, 2, pi/2)
119121
sage: d = p.get_minmax_data()
120122
sage: d['xmin']
@@ -293,6 +295,7 @@ def bezier_path(self):
293295
sage: Arc(2,3,2.2,2.2,0,2,3,op).bezier_path()
294296
Graphics object consisting of 1 graphics primitive
295297
298+
sage: from math import pi
296299
sage: a = arc((0,0),2,1,0,(pi/5,pi/2+pi/12), linestyle="--", color="red")
297300
sage: b = a[0].bezier_path()
298301
sage: b[0]
@@ -348,6 +351,7 @@ def _render_on_subplot(self, subplot):
348351
"""
349352
TESTS::
350353
354+
sage: from math import pi
351355
sage: A = arc((1,1),3,4,pi/4,(pi,4*pi/3)); A
352356
Graphics object consisting of 1 graphics primitive
353357
"""
@@ -421,6 +425,7 @@ def arc(center, r1, r2=None, angle=0.0, sector=(0.0, 2 * pi), **options):
421425
Plot an arc of circle centered at (0,0) with radius 1 in the sector
422426
`(\pi/4,3*\pi/4)`::
423427
428+
sage: from math import pi
424429
sage: arc((0,0), 1, sector=(pi/4,3*pi/4))
425430
Graphics object consisting of 1 graphics primitive
426431

src/sage/plot/plot3d/shapes2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def tetra(col):
161161
This function should work for anything than can be turned into a
162162
list, such as iterators and such (see :trac:`10478`)::
163163
164-
sage: line3d(iter([(0,0,0), (sqrt(3), 2, 4)]))
164+
sage: line3d(iter([(0,0,0), (sqrt(3), 2, 4)])) # optional - sage.symbolic
165165
Graphics3d Object
166166
sage: line3d((x, x^2, x^3) for x in range(5))
167167
Graphics3d Object

0 commit comments

Comments
 (0)