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

Public Member Functions

def __init__ (self, numerical_value, latex_symbol="")
 
def symbol (self, x)
 
def place_list (self, mx, Mx, frac=1, mark_origin=True)
 

Public Attributes

 numerical_value
 
 latex_symbol
 

Constructor & Destructor Documentation

def phystricks.src.MathStructures.AxesUnit.__init__ (   self,
  numerical_value,
  latex_symbol = "" 
)

Member Function Documentation

def phystricks.src.MathStructures.AxesUnit.place_list (   self,
  mx,
  Mx,
  frac = 1,
  mark_origin = True 
)
return a tuple of 
1. values that are all the integer multiple of 
<frac>*self.numerical_value 
    between mx and Mx
2. the multiple of the basis unit.

Give <frac> as literal real. Recall that python evaluates 1/2 to 0. If you pass 0.5, it will be converted back to 1/2 for a nice display.
def phystricks.src.MathStructures.AxesUnit.symbol (   self,
  x 
)

Member Data Documentation

phystricks.src.MathStructures.AxesUnit.latex_symbol
phystricks.src.MathStructures.AxesUnit.numerical_value

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