@@ -272,23 +272,51 @@ def ellipse(center, r1, r2, angle=0, **options):
272
272
sage: ellipse((0,0),2,1)
273
273
Graphics object consisting of 1 graphics primitive
274
274
275
+ .. PLOT::
276
+
277
+ E=ellipse((0,0),2,1)
278
+ sphinx_plot(E)
279
+
275
280
More complicated examples with tilted axes and drawing options::
276
281
277
282
sage: ellipse((0,0),3,1,pi/6,fill=True,alpha=0.3,linestyle="dashed")
278
283
Graphics object consisting of 1 graphics primitive
284
+
285
+ .. PLOT::
286
+
287
+ E = ellipse((0,0),3,1,pi/6,fill=True,alpha=0.3,linestyle="dashed")
288
+ sphinx_plot(E)
289
+
290
+ other way to indicate dashed linestyle::
291
+
279
292
sage: ellipse((0,0),3,1,pi/6,fill=True,alpha=0.3,linestyle="--")
280
293
Graphics object consisting of 1 graphics primitive
281
294
282
- ::
295
+ .. PLOT::
296
+
297
+ E =ellipse((0,0),3,1,pi/6,fill=True,alpha=0.3,linestyle='--')
298
+ sphinx_plot(E)
299
+
300
+ with colors ::
283
301
284
302
sage: ellipse((0,0),3,1,pi/6,fill=True,edgecolor='black',facecolor='red')
285
303
Graphics object consisting of 1 graphics primitive
304
+
305
+ .. PLOT::
306
+
307
+ E=ellipse((0,0),3,1,pi/6,fill=True,edgecolor='black',facecolor='red')
308
+ sphinx_plot(E)
286
309
287
310
We see that ``rgbcolor`` overrides these other options, as this plot
288
311
is green::
289
312
290
313
sage: ellipse((0,0),3,1,pi/6,fill=True,edgecolor='black',facecolor='red',rgbcolor='green')
291
314
Graphics object consisting of 1 graphics primitive
315
+
316
+ .. PLOT::
317
+
318
+ E=ellipse((0,0),3,1,pi/6,fill=True,edgecolor='black',facecolor='red',rgbcolor='green')
319
+ sphinx_plot(E)
292
320
293
321
The default aspect ratio for ellipses is 1.0::
294
322
@@ -306,6 +334,12 @@ def ellipse(center, r1, r2, angle=0, **options):
306
334
307
335
sage: ellipse((0,0),2,1,legend_label="My ellipse", legend_color='green')
308
336
Graphics object consisting of 1 graphics primitive
337
+
338
+ .. PLOT::
339
+
340
+ E=ellipse((0,0),2,1,legend_label="My ellipse", legend_color='green')
341
+ sphinx_plot(E)
342
+
309
343
"""
310
344
from sage .plot .all import Graphics
311
345
g = Graphics ()
0 commit comments