@@ -45,6 +45,7 @@ class Arc(GraphicPrimitive):
45
45
46
46
Note that the construction should be done using ``arc``::
47
47
48
+ sage: from math import pi
48
49
sage: from sage.plot.arc import Arc
49
50
sage: print(Arc(0,0,1,1,pi/4,pi/4,pi/2,{}))
50
51
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):
115
116
116
117
The same example with a rotation of angle `\pi/2`::
117
118
119
+ sage: from math import pi
118
120
sage: p = arc((-2, 3), 1, 2, pi/2)
119
121
sage: d = p.get_minmax_data()
120
122
sage: d['xmin']
@@ -293,6 +295,7 @@ def bezier_path(self):
293
295
sage: Arc(2,3,2.2,2.2,0,2,3,op).bezier_path()
294
296
Graphics object consisting of 1 graphics primitive
295
297
298
+ sage: from math import pi
296
299
sage: a = arc((0,0),2,1,0,(pi/5,pi/2+pi/12), linestyle="--", color="red")
297
300
sage: b = a[0].bezier_path()
298
301
sage: b[0]
@@ -348,6 +351,7 @@ def _render_on_subplot(self, subplot):
348
351
"""
349
352
TESTS::
350
353
354
+ sage: from math import pi
351
355
sage: A = arc((1,1),3,4,pi/4,(pi,4*pi/3)); A
352
356
Graphics object consisting of 1 graphics primitive
353
357
"""
@@ -421,6 +425,7 @@ def arc(center, r1, r2=None, angle=0.0, sector=(0.0, 2 * pi), **options):
421
425
Plot an arc of circle centered at (0,0) with radius 1 in the sector
422
426
`(\pi/4,3*\pi/4)`::
423
427
428
+ sage: from math import pi
424
429
sage: arc((0,0), 1, sector=(pi/4,3*pi/4))
425
430
Graphics object consisting of 1 graphics primitive
426
431
0 commit comments