phystricks
Public Member Functions | Public Attributes | Private Attributes | List of all members
phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph Class Reference
Inheritance diagram for phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph:
Inheritance graph
[legend]
Collaboration diagram for phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, points_list, context_object=None, mode=None)
 
def representative_points (self)
 
def get_minmax_data (self)
 
def xmin (self)
 
def xmax (self)
 
def ymin (self)
 
def ymax (self)
 
def mark_point (self, pspict=None)
 
def bounding_box (self, pspict=None)
 
def math_bounding_box (self, pspict=None)
 
def tikz_code (self, pspict=None)
 
def latex_code (self, language, pspict=None)
 
def __str__ (self)
 

Public Attributes

 points_list
 
 I
 
 F
 
 context_object
 
 contex_object
 
 mode
 

Private Attributes

 _minmax_data
 

Constructor & Destructor Documentation

def phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph.__init__ (   self,
  points_list,
  context_object = None,
  mode = None 
)

Member Function Documentation

def phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph.__str__ (   self)
Return a string representation

EXAMPLES::

sage: from phystricks.BasicGeometricObjects import *
sage: print InterpolationCurve([Point(0,0),Point(1,1)])
<InterpolationCurve with points ['<Point(0,0)>', '<Point(1,1)>']>
def phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph.bounding_box (   self,
  pspict = None 
)
Return the bounding box of the interpolation curve

EXAMPLES::

sage: from phystricks import *
sage: print InterpolationCurve([Point(0,0),Point(1,1)]).bounding_box()
<BoundingBox xmin=0.0,xmax=1.0; ymin=0.0,ymax=1.0>

sage: C=Circle(Point(0,0),1)
sage: n=400
sage: print InterpolationCurve([C.get_point(i*SR(360)/n,advised=False) for i in range(n)]).bounding_box()
<BoundingBox xmin=-1.0,xmax=1.0; ymin=-1.0,ymax=1.0>

NOTE::

Since the bounding box is computed from the give points while the curve is an interpolation,
this bounding box is incorrect to the extend that \pscurve does not remains in the convex hull
of the given points.

EXAMPLE:
sage: F=InterpolationCurve([Point(-1,1),Point(1,1),Point(1,-1),Point(-1,-1)])
sage: print F.bounding_box()
<BoundingBox xmin=-1.0,xmax=1.0; ymin=-1.0,ymax=1.0>
def phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph.get_minmax_data (   self)
Return a dictionary whose keys give the xmin, xmax, ymin, and ymax
data for this graphic.

EXAMPLES::

sage: from phystricks import *
sage: C=Circle(Point(0,0),1)
sage: n=400
sage: InterpolationCurve([C.get_point(i*SR(360)/n,advised=False) for i in range(n)]).get_minmax_data()
{'xmax': 1.0, 'xmin': -1.0, 'ymax': 1.0, 'ymin': -1.0}
def phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph.latex_code (   self,
  language,
  pspict = None 
)
def phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph.mark_point (   self,
  pspict = None 
)
def phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph.math_bounding_box (   self,
  pspict = None 
)
return the bounding box corresponding to the curve without decorations.

See InterpolationCurve.bounding_box()
def phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph.representative_points (   self)
def phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph.tikz_code (   self,
  pspict = None 
)
def phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph.xmax (   self)
def phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph.xmin (   self)
def phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph.ymax (   self)
def phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph.ymin (   self)

Member Data Documentation

phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph._minmax_data
private
phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph.contex_object
phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph.context_object
phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph.F
phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph.I
phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph.mode
phystricks.src.InterpolationCurveGraph.InterpolationCurveGraph.points_list

The documentation for this class was generated from the following file: