AUTHORS:
Bases: sage.plot.bezier_path.BezierPath
Primitive class for hyberbolic polygon type.
See hyperbolic_polygon? for information about plotting a hyperbolic polygon in the complex plane.
INPUT:
EXAMPLES:
Note that constructions should use hyperbolic_polygon() or hyperbolic_triangle():
sage: from sage.plot.hyperbolic_polygon import HyperbolicPolygon
sage: print HyperbolicPolygon([0, 1/2, I], {})
Hyperbolic polygon (0.000000000000000, 0.500000000000000, 1.00000000000000*I)
Return a hyperbolic polygon in the hyperbolic plane with vertices pts.
Type ?hyperbolic_polygon to see all options.
INPUT:
OPTIONS:
EXAMPLES:
Show a hyperbolic polygon with coordinates ,
,
,
:
sage: hyperbolic_polygon([-1,3*I,2+2*I,1+I])
Graphics object consisting of 1 graphics primitive
With more options:
sage: hyperbolic_polygon([-1,3*I,2+2*I,1+I], fill=True, color='red')
Graphics object consisting of 1 graphics primitive
Return a hyperbolic triangle in the hyperbolic plane with vertices (a,b,c).
Type ?hyperbolic_polygon to see all options.
INPUT:
OPTIONS:
EXAMPLES:
Show a hyperbolic triangle with coordinates and
:
sage: hyperbolic_triangle(0, -1/2+I*sqrt(3)/2, 1/2+I*sqrt(3)/2)
Graphics object consisting of 1 graphics primitive
A hyperbolic triangle with coordinates and
and a dashed line:
sage: hyperbolic_triangle(0, 1, 2+i, fill=true, rgbcolor='red', linestyle='--')
Graphics object consisting of 1 graphics primitive