CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Static Public Attributes
svgfig.Axes Class Reference

Public Member Functions

def __init__
 
def __repr__
 
def SVG
 

Public Attributes

 arrows
 
 attr
 
 aty
 
 text_attr
 
 xlogbase
 
 xmax
 
 ylogbase
 
 ymax
 

Static Public Attributes

dictionary defaults = {"stroke-width":"0.25pt"}
 
dictionary text_defaults = {"stroke":"none", "fill":"black", "font-size":5}
 

Detailed Description

Draw a pair of intersecting x-y axes.

Axes(xmin, xmax, ymin, ymax, atx, aty, xticks, xminiticks, xlabels, xlogbase,
yticks, yminiticks, ylabels, ylogbase, arrows, text_attr, attribute=value)

xmin, xmax               required       the x range
ymin, ymax               required       the y range
atx, aty                 default=0, 0   point where the axes try to cross;
                                        if outside the range, the axes will
                                        cross at the closest corner
xticks                   default=-10    request ticks according to the standard
                                        tick specification (see help(Ticks))
xminiticks               default=True   request miniticks according to the
                                        standard minitick specification
xlabels                  True           request tick labels according to the
                                        standard tick label specification
xlogbase                 default=None   if a number, the x axis is logarithmic
                                        with ticks at the given base (usually 10)
yticks                   default=-10    request ticks according to the standard
                                        tick specification
yminiticks               default=True   request miniticks according to the
                                        standard minitick specification
ylabels                  True           request tick labels according to the
                                        standard tick label specification
ylogbase                 default=None   if a number, the y axis is logarithmic
                                        with ticks at the given base (usually 10)
arrows                   default=None   if a new string identifier, draw arrows
                                        referenced by that identifier
text_attr                default={}     SVG attributes for the text labels
attribute=value pairs    keyword list   SVG attributes for all lines

Definition at line 3042 of file svgfig.py.

Constructor & Destructor Documentation

def svgfig.Axes.__init__ (   self,
  xmin,
  xmax,
  ymin,
  ymax,
  atx = 0,
  aty = 0,
  xticks = -10,
  xminiticks = True,
  xlabels = True,
  xlogbase = None,
  yticks = -10,
  yminiticks = True,
  ylabels = True,
  ylogbase = None,
  arrows = None,
  text_attr = {},
  attr 
)

Definition at line 3080 of file svgfig.py.

Member Function Documentation

def svgfig.Axes.__repr__ (   self)

Definition at line 3077 of file svgfig.py.

def svgfig.Axes.SVG (   self,
  trans = None 
)
Apply the transformation "trans" and return an SVG object.

Definition at line 3094 of file svgfig.py.

Member Data Documentation

svgfig.Axes.arrows

Definition at line 3086 of file svgfig.py.

svgfig.Axes.attr

Definition at line 3091 of file svgfig.py.

svgfig.Axes.aty

Definition at line 3083 of file svgfig.py.

dictionary svgfig.Axes.defaults = {"stroke-width":"0.25pt"}
static

Definition at line 3074 of file svgfig.py.

svgfig.Axes.text_attr

Definition at line 3088 of file svgfig.py.

dictionary svgfig.Axes.text_defaults = {"stroke":"none", "fill":"black", "font-size":5}
static

Definition at line 3075 of file svgfig.py.

svgfig.Axes.xlogbase

Definition at line 3084 of file svgfig.py.

svgfig.Axes.xmax

Definition at line 3081 of file svgfig.py.

svgfig.Axes.ylogbase

Definition at line 3085 of file svgfig.py.

svgfig.Axes.ymax

Definition at line 3082 of file svgfig.py.