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.Grid Class Reference
Inheritance diagram for svgfig.Grid:
svgfig.Ticks

Public Member Functions

def __init__
 
def __repr__
 
def SVG
 
- Public Member Functions inherited from svgfig.Ticks
def __init__
 
def __repr__
 
def compute_logminiticks
 
def compute_logticks
 
def compute_miniticks
 
def compute_ticks
 
def interpret
 
def orient_tickmark
 
def regular_miniticks
 
def SVG
 

Public Attributes

 attr
 
 high
 
 last_xminiticks
 
 last_yminiticks
 
 mini_attr
 
 xmax
 
 ymax
 
- Public Attributes inherited from svgfig.Ticks
 arrow_end
 
 arrow_start
 
 attr
 
 f
 
 high
 
 labels
 
 last_miniticks
 
 logbase
 
 low
 
 miniticks
 
 text_attr
 
 ticks
 

Static Public Attributes

dictionary defaults = {"stroke-width":"0.25pt", "stroke":"gray"}
 
dictionary mini_defaults = {"stroke-width":"0.25pt", "stroke":"lightgray", "stroke-dasharray":"1,1"}
 
- Static Public Attributes inherited from svgfig.Ticks
dictionary defaults = {"stroke-width":"0.25pt"}
 
float minitick_end = 0.75
 
float minitick_start = -0.75
 
int text_angle = 0
 
dictionary text_defaults = {"stroke":"none", "fill":"black", "font-size":5}
 
float text_start = 2.5
 
float tick_end = 1.5
 
float tick_start = -1.5
 

Detailed Description

Draws a grid over a specified region using the standard tick
specification (see help(Ticks)) to place the grid lines.

Grid(xmin, xmax, ymin, ymax, ticks, miniticks, logbase, mini_attr, attribute=value)

xmin, xmax              required        the x range
ymin, ymax              required        the y range
ticks                   default=-10     request ticks according to the standard
                                        tick specification (see help(Ticks))
miniticks               default=False   request miniticks according to the
                                        standard minitick specification
logbase                 default=None    if a number, the axis is logarithmic
                                        with ticks at the given base (usually 10)
mini_attr               default={}      SVG attributes for the minitick-lines
                                        (if miniticks != False)
attribute=value pairs   keyword list    SVG attributes for the major tick lines

Definition at line 3222 of file svgfig.py.

Constructor & Destructor Documentation

def svgfig.Grid.__init__ (   self,
  xmin,
  xmax,
  ymin,
  ymax,
  ticks = -10,
  miniticks = False,
  logbase = None,
  mini_attr = {},
  attr 
)

Definition at line 3246 of file svgfig.py.

Member Function Documentation

def svgfig.Grid.__repr__ (   self)

Definition at line 3243 of file svgfig.py.

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

Definition at line 3258 of file svgfig.py.

Member Data Documentation

svgfig.Grid.attr

Definition at line 3255 of file svgfig.py.

dictionary svgfig.Grid.defaults = {"stroke-width":"0.25pt", "stroke":"gray"}
static

Definition at line 3240 of file svgfig.py.

svgfig.Grid.high

Definition at line 3260 of file svgfig.py.

svgfig.Grid.last_xminiticks

Definition at line 3261 of file svgfig.py.

svgfig.Grid.last_yminiticks

Definition at line 3263 of file svgfig.py.

svgfig.Grid.mini_attr

Definition at line 3250 of file svgfig.py.

dictionary svgfig.Grid.mini_defaults = {"stroke-width":"0.25pt", "stroke":"lightgray", "stroke-dasharray":"1,1"}
static

Definition at line 3241 of file svgfig.py.

svgfig.Grid.xmax

Definition at line 3247 of file svgfig.py.

svgfig.Grid.ymax

Definition at line 3248 of file svgfig.py.