| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
structure.sage_object.SageObject --+
|
GraphicPrimitive
Base class for graphics primitives, e.g., things that knows how to draw
themselves in 2d.
EXAMPLES:
We create an object that derives from GraphicPrimitive:
sage: P = line([(-1,-2), (3,5)])
sage: P[0]
Line defined by 2 points
sage: type(P[0])
<class 'sage.plot.plot.GraphicPrimitive_Line'>
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Create a base class GraphicsPrimitive. All this does is
set the options.
EXAMPLES:
We indirectly test this function.
sage: from sage.plot.plot import GraphicPrimitive
sage: GraphicPrimitive({})
Graphics primitive
|
Return the allowed options for a graphics primitive.
OUTPUT:
-- a reference to a dictionary.
EXAMPLES:
sage: from sage.plot.plot import GraphicPrimitive
sage: GraphicPrimitive({})._allowed_options()
{}
|
Return the dictionary of options for this graphics primitive.
By default this function verifies that the options are all
valid; if any aren't a verbose message is printed with level 0.
EXAMPLES:
sage: from sage.plot.plot import GraphicPrimitive
sage: GraphicPrimitive({}).options()
{}
|
String representation of this graphics primitive.
EXAMPLES:
sage: from sage.plot.plot import GraphicPrimitive
sage: GraphicPrimitive({})._repr_()
'Graphics primitive'
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0beta1 on Thu Jul 17 04:23:49 2008 | http://epydoc.sourceforge.net |