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

Public Member Functions

def __init__ (self, C, base, mx, Mx, pspict=None)
 
def segment (self, projection=False, pspict=None)
 
def add_option (self, opt)
 
def mark_point (self, pspict=None)
 
def no_numbering (self)
 
def no_graduation (self)
 
def enlarge_a_little (self, l, xunit=None, yunit=None, pspict=None)
 
def graduation_bars (self, pspict)
 
def conclude (self, pspict)
 
def action_on_pspict (self, pspict)
 
def __str__ (self)
 
- 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 Attributes

 C
 
 base
 
 mx
 
 Mx
 
 pspict
 
 options
 
 IsLabel
 
 axes_unit
 
 Dx
 
 arrows
 
 graduation
 
 numbering
 
 imposed_graduation
 
 mark_origin
 
 mark
 
 mark_angle
 
 enlarge_size
 
- 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
 

Private Member Functions

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

Private Attributes

 _already_concluded
 

Constructor & Destructor Documentation

def phystricks.src.SingleAxeGraph.SingleAxeGraph.__init__ (   self,
  C,
  base,
  mx,
  Mx,
  pspict = None 
)

Member Function Documentation

def phystricks.src.SingleAxeGraph.SingleAxeGraph.__str__ (   self)
def phystricks.src.SingleAxeGraph.SingleAxeGraph._bounding_box (   self,
  pspict 
)
private
def phystricks.src.SingleAxeGraph.SingleAxeGraph._math_bounding_box (   self,
  pspict 
)
private
def phystricks.src.SingleAxeGraph.SingleAxeGraph.action_on_pspict (   self,
  pspict 
)
def phystricks.src.SingleAxeGraph.SingleAxeGraph.add_option (   self,
  opt 
)
def phystricks.src.SingleAxeGraph.SingleAxeGraph.conclude (   self,
  pspict 
)
From the possibility of drawing default axes, the parameters like
the length of the axes are unknown up to the last moment. The axe is 
created in the same time as the picture, but the mark bars for example
can only be computed after all the other objects.
So we need to make some ultimate settings before to be drawn.
This function is called by `Picture._DrawGraph`, right before
to compute and add the bounding box and to call `action_on_pspict`.
def phystricks.src.SingleAxeGraph.SingleAxeGraph.enlarge_a_little (   self,
  l,
  xunit = None,
  yunit = None,
  pspict = None 
)
return the tuple (mx,Mx) that correspond to axes of length
`l` more than self (in both directions)
def phystricks.src.SingleAxeGraph.SingleAxeGraph.graduation_bars (   self,
  pspict 
)
Return the list of bars that makes the graduation of the axes

By default, it is one at each multiple of self.base. If an user-defined axes_unit is given, then self.base is modified.

This function also enlarges the axe by half a *visual* centimeter.
def phystricks.src.SingleAxeGraph.SingleAxeGraph.mark_point (   self,
  pspict = None 
)
def phystricks.src.SingleAxeGraph.SingleAxeGraph.no_graduation (   self)
def phystricks.src.SingleAxeGraph.SingleAxeGraph.no_numbering (   self)
def phystricks.src.SingleAxeGraph.SingleAxeGraph.segment (   self,
  projection = False,
  pspict = None 
)

Member Data Documentation

phystricks.src.SingleAxeGraph.SingleAxeGraph._already_concluded
private
phystricks.src.SingleAxeGraph.SingleAxeGraph.arrows
phystricks.src.SingleAxeGraph.SingleAxeGraph.axes_unit
phystricks.src.SingleAxeGraph.SingleAxeGraph.base
phystricks.src.SingleAxeGraph.SingleAxeGraph.C
phystricks.src.SingleAxeGraph.SingleAxeGraph.Dx
phystricks.src.SingleAxeGraph.SingleAxeGraph.enlarge_size
phystricks.src.SingleAxeGraph.SingleAxeGraph.graduation
phystricks.src.SingleAxeGraph.SingleAxeGraph.imposed_graduation
phystricks.src.SingleAxeGraph.SingleAxeGraph.IsLabel
phystricks.src.SingleAxeGraph.SingleAxeGraph.mark
phystricks.src.SingleAxeGraph.SingleAxeGraph.mark_angle
phystricks.src.SingleAxeGraph.SingleAxeGraph.mark_origin
phystricks.src.SingleAxeGraph.SingleAxeGraph.mx
phystricks.src.SingleAxeGraph.SingleAxeGraph.Mx
phystricks.src.SingleAxeGraph.SingleAxeGraph.numbering
phystricks.src.SingleAxeGraph.SingleAxeGraph.options
phystricks.src.SingleAxeGraph.SingleAxeGraph.pspict

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