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

Public Member Functions

def __init__ (self, implicit_curve, xrange, yrange, plot_points=300)
 
def get_minmax_data (self, decimals=3, dict=True)
 
def xmin (self)
 
def xmax (self)
 
def ymin (self)
 
def ymax (self)
 
def latex_code (self, language=None, pspict=None)
 
- Public Member Functions inherited from phystricks.src.ObjectGraph.ObjectGraph
def __init__ (self, obj)
 
def draw_edges (self)
 
def wave (self, dx, dy)
 
def get_arrow (self, llam)
 
def get_mark (self, dist, angle=None, text=None, mark_point=None, added_angle=None, position=None, pspict=None)
 
def put_mark (self, dist=None, angle=None, text="", mark_point=None, added_angle=None, position=None, pspict=None, pspicts=None)
 put a mark on an object More...
 
def add_option (self, opt)
 
def get_option (opt)
 
def remove_option (opt)
 
def merge_options (self, graph)
 
def conclude_params (self)
 
def params (self, language, refute=[])
 
def bracketAttributesText (self, language, refute=[])
 
def action_on_pspict (self, pspict)
 
def conclude (self, pspict)
 
def bounding_box (self, pspict=None)
 
def math_bounding_box (self, pspict)
 
def latex_code (self, pspict, language=None)
 
- Public Member Functions inherited from phystricks.src.ImplicitCurve.GeometricImplicitCurve
def __init__ (self, f)
 
def graph (self, xrange, yrange, plot_points=100)
 
def __str__ (self)
 

Public Attributes

 implicit_curve
 
 implicit_plot
 
 xrange
 
 yrange
 
 plot_points
 
 paths
 
- Public Attributes inherited from phystricks.src.ObjectGraph.ObjectGraph
 obj
 
 parameters
 
 wavy
 
 waviness
 
 options
 
 draw_bounding_box
 
 already_computed_BB
 
 already_computed_math_BB
 
 record_add_to_bb
 
 separator_name
 
 in_math_bounding_box
 
 in_bounding_box
 
 added_objects
 
 take_BB
 
 take_math_BB
 
 mark
 
 marque
 
- Public Attributes inherited from phystricks.src.ImplicitCurve.GeometricImplicitCurve
 f
 
 parameters
 

Private Member Functions

def _bounding_box (self, pspict=None)
 
def _math_bounding_box (self, pspict=None)
 

Constructor & Destructor Documentation

def phystricks.src.ImplicitCurve.ImplicitCurveGraph.__init__ (   self,
  implicit_curve,
  xrange,
  yrange,
  plot_points = 300 
)

Member Function Documentation

def phystricks.src.ImplicitCurve.ImplicitCurveGraph._bounding_box (   self,
  pspict = None 
)
private
Return the bounding box of the implicit curve.

This is NOT the bounding box got that one could expect
using Sage's plotting system
implicit_plot(f,xrange,yrange).get_minmax_data()

Instead the bounding box returned here only contains the points that
are actually plotted. In the following example, we know that the ymax
has to be half the sqrt of the radius (and not the 5 given in yrange).

EXAMPLES::

    sage: from phystricks import *
    sage: x,y=var('x,y')
    sage: f=x**2+2*y**2
    sage: G=ImplicitCurve(f==sqrt(2),(x,-5,5),(y,-5,5),plot_points=200)
    sage: print G.bounding_box()
    <BoundingBox xmin=-1.188,xmax=1.188; ymin=-0.841,ymax=0.841>
def phystricks.src.ImplicitCurve.ImplicitCurveGraph._math_bounding_box (   self,
  pspict = None 
)
private
def phystricks.src.ImplicitCurve.ImplicitCurveGraph.get_minmax_data (   self,
  decimals = 3,
  dict = True 
)
Return a dictionary whose keys give the xmin, xmax, ymin, and ymax
data for this graphic.

Since the results come from the lazy_attribute function _get_minmax_data, changing the number of points
between two call will not change the result.

EXAMPLES::

    sage: from phystricks import *
    sage: x,y=var('x,y')
    sage: F=ImplicitCurve(x**2+y**2==sqrt(2),(x,-5,5),(y,-4,4),plot_points=300)
    sage: F.get_minmax_data()   # random
    {'xmin': -1.1890000000000001, 'ymin': -1.1879999999999999, 'ymax': 1.1879999999999999, 'xmax': 1.1890000000000001}
    sage: F.plot_points=10
    sage: F.get_minmax_data()       # random
    {'xmin': -1.189, 'ymin': -1.188, 'ymax': 1.188, 'xmax': 1.189}
def phystricks.src.ImplicitCurve.ImplicitCurveGraph.latex_code (   self,
  language = None,
  pspict = None 
)
Return the pstrick code of the implicit curve.
def phystricks.src.ImplicitCurve.ImplicitCurveGraph.xmax (   self)
def phystricks.src.ImplicitCurve.ImplicitCurveGraph.xmin (   self)
def phystricks.src.ImplicitCurve.ImplicitCurveGraph.ymax (   self)
def phystricks.src.ImplicitCurve.ImplicitCurveGraph.ymin (   self)

Member Data Documentation

phystricks.src.ImplicitCurve.ImplicitCurveGraph.implicit_curve
phystricks.src.ImplicitCurve.ImplicitCurveGraph.implicit_plot
phystricks.src.ImplicitCurve.ImplicitCurveGraph.paths
phystricks.src.ImplicitCurve.ImplicitCurveGraph.plot_points
phystricks.src.ImplicitCurve.ImplicitCurveGraph.xrange
phystricks.src.ImplicitCurve.ImplicitCurveGraph.yrange

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