Ejemplo n.º 1
0
 def __init__(self, f):
     self.f = f
     self.parameters = Parameters()
     from sage.symbolic.expression import is_SymbolicEquation
     if is_SymbolicEquation(f):
         if f.operator() != operator.eq:
             raise ValueError(
                 "input to implicit plot must be function or equation")
         # At this point self.f is the expression to be equated to zero.
         self.f = f.lhs() - f.rhs()
Ejemplo n.º 2
0
    def __init__(self, obj):
        self.obj = obj
        self.parameters = Parameters(self.obj)
        self.wavy = False
        self.waviness = None
        self.options = Options()
        self.draw_bounding_box = False

        self.already_computed_BB = {}
        self.already_computed_math_BB = {}

        self.record_add_to_bb = []
        self.separator_name = "DEFAULT"
        self.in_math_bounding_box = True
        self.in_bounding_box = True
        self._draw_edges = False
        self.added_objects = AddedObjects()

        self.take_BB = True
        self.take_math_BB = True

        self.mark = None
        self.marque = None
Ejemplo n.º 3
0
    def __init__(self, points_list):
        ObjectGraph.__init__(self, self)
        self.edges = []
        self.vertices = points_list
        self.points_list = self.vertices

        for i in range(0, len(self.points_list)):
            segment = Segment(
                self.points_list[i],
                self.points_list[(i + 1) % len(self.points_list)])
            self.edges.append(segment)
        self.draw_edges = True
        self.independent_edge = False
        self.parameters = None

        from yanntricks.src.parameters.Parameters import Parameters
        from yanntricks.src.parameters.HatchParameters import HatchParameters
        from yanntricks.src.parameters.FillParameters import FillParameters

        self.edges_parameters = Parameters(self)
        self.hatch_parameters = HatchParameters()
        self.fill_parameters = FillParameters()
        self._hatched = False
        self._filled = False
 def __init__(self, args):
     ObjectGraph.__init__(self, self)
     # self.add_option("fillstyle=vlines,linestyle=none")
     self.add_option("fillstyle=none,linestyle=none")
     self.graphList = args
     self.edges = Parameters()