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

Commit 230bf0c

Browse files
Added some doctest to the plot() methods in parametric_surface.pyx and base.pyx
1 parent a46d881 commit 230bf0c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/sage/plot/plot3d/base.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -1738,6 +1738,13 @@ end_scene""" % (render_params.antialiasing,
17381738
"""
17391739
Draw a 3D plot of this graphics object, which just returns this
17401740
object since this is already a 3D graphics object.
1741+
1742+
EXAMPLES::
1743+
1744+
sage: S = sphere((0,0,0), 2)
1745+
sage: S.plot() is S
1746+
True
1747+
17411748
"""
17421749
return self
17431750

src/sage/plot/plot3d/parametric_surface.pyx

+7
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,13 @@ cdef class ParametricSurface(IndexFaceSet):
676676
"""
677677
Draw a 3D plot of this graphics object, which just returns this
678678
object since this is already a 3D graphics object.
679+
680+
EXAMPLES::
681+
682+
sage: S = parametric_plot3d( (sin, cos, lambda u: u/10), (0, 20))
683+
sage: S.plot() is S
684+
True
685+
679686
"""
680687
return self
681688

0 commit comments

Comments
 (0)