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.Frame Class Reference

Public Member Functions

def __init__
 
def __repr__
 
def SVG
 

Public Attributes

 axis_attr
 
 d
 
 flipx
 
 flipy
 
 height
 
 last_window
 
 minusInfinity
 
 text_attr
 
 width
 
 x
 
 x2labels
 
 xlabels
 
 xlogbase
 
 xminiticks
 
 xticks
 
 xtitle
 
 y
 
 y2labels
 
 ylabels
 
 ylogbase
 
 ymax
 
 yminiticks
 
 yticks
 
 ytitle
 

Static Public Attributes

dictionary axis_defaults = {}
 
float minitick_length = 0.75
 
dictionary text_defaults = {"stroke":"none", "fill":"black", "font-size":5}
 
int text_xaxis_offset = 1
 
int text_xtitle_offset = 6
 
int text_yaxis_offset = 2
 
int text_ytitle_offset = 12
 
float tick_length = 1.5
 

Detailed Description

Definition at line 872 of file svgfig.py.

Constructor & Destructor Documentation

def svgfig.Frame.__init__ (   self,
  xmin,
  xmax,
  ymin,
  ymax,
  d,
  kwds 
)
Acts like Fig, but draws a coordinate frame around the data. You also need to supply plot ranges.

Frame(xmin, xmax, ymin, ymax, obj, obj, obj..., keyword options...)

xmin, xmax      required        minimum and maximum x values (in the objs' coordinates)
ymin, ymax      required        minimum and maximum y values (in the objs' coordinates)
obj             optional list   drawing primatives
keyword options keyword list    options defined below

The following are keyword options, with their default values:

x, y            20, 5         upper-left corner of the Frame in SVG coordinates
width, height   75, 80        width and height of the Frame in SVG coordinates
flipx, flipy    False, True   flip the sign of the coordinate axis
minusInfinity   -1000         if an axis is logarithmic and an object is plotted at 0 or
                          a negative value, -1000 will be used as a stand-in for NaN
xtitle          None          if a string, label the x axis
xticks          -10           request ticks according to the standard tick specification
                          (see help(Ticks))
xminiticks      True          request miniticks according to the standard minitick
                          specification
xlabels         True          request tick labels according to the standard tick label
                          specification
xlogbase        None          if a number, the axis and transformation are logarithmic
                          with ticks at the given base (10 being the most common)
(same for y)
text_attr       {}            a dictionary of attributes for label text
axis_attr       {}            a dictionary of attributes for the axis lines

Definition at line 886 of file svgfig.py.

Member Function Documentation

def svgfig.Frame.__repr__ (   self)

Definition at line 883 of file svgfig.py.

def svgfig.Frame.SVG (   self)
Apply the window transformation and return an SVG object.

Definition at line 955 of file svgfig.py.

Member Data Documentation

svgfig.Frame.axis_attr

Definition at line 949 of file svgfig.py.

dictionary svgfig.Frame.axis_defaults = {}
static

Definition at line 874 of file svgfig.py.

svgfig.Frame.d

Definition at line 918 of file svgfig.py.

svgfig.Frame.flipx

Definition at line 930 of file svgfig.py.

svgfig.Frame.flipy

Definition at line 931 of file svgfig.py.

svgfig.Frame.height

Definition at line 929 of file svgfig.py.

svgfig.Frame.last_window

Definition at line 958 of file svgfig.py.

float svgfig.Frame.minitick_length = 0.75
static

Definition at line 877 of file svgfig.py.

svgfig.Frame.minusInfinity

Definition at line 932 of file svgfig.py.

svgfig.Frame.text_attr

Definition at line 946 of file svgfig.py.

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

Definition at line 873 of file svgfig.py.

int svgfig.Frame.text_xaxis_offset = 1
static

Definition at line 878 of file svgfig.py.

int svgfig.Frame.text_xtitle_offset = 6
static

Definition at line 880 of file svgfig.py.

int svgfig.Frame.text_yaxis_offset = 2
static

Definition at line 879 of file svgfig.py.

int svgfig.Frame.text_ytitle_offset = 12
static

Definition at line 881 of file svgfig.py.

float svgfig.Frame.tick_length = 1.5
static

Definition at line 876 of file svgfig.py.

svgfig.Frame.width

Definition at line 928 of file svgfig.py.

svgfig.Frame.x

Definition at line 926 of file svgfig.py.

svgfig.Frame.x2labels

Definition at line 937 of file svgfig.py.

svgfig.Frame.xlabels

Definition at line 936 of file svgfig.py.

svgfig.Frame.xlogbase

Definition at line 938 of file svgfig.py.

svgfig.Frame.xminiticks

Definition at line 935 of file svgfig.py.

svgfig.Frame.xticks

Definition at line 934 of file svgfig.py.

svgfig.Frame.xtitle

Definition at line 933 of file svgfig.py.

svgfig.Frame.y

Definition at line 927 of file svgfig.py.

svgfig.Frame.y2labels

Definition at line 943 of file svgfig.py.

svgfig.Frame.ylabels

Definition at line 942 of file svgfig.py.

svgfig.Frame.ylogbase

Definition at line 944 of file svgfig.py.

svgfig.Frame.ymax

Definition at line 917 of file svgfig.py.

svgfig.Frame.yminiticks

Definition at line 941 of file svgfig.py.

svgfig.Frame.yticks

Definition at line 940 of file svgfig.py.

svgfig.Frame.ytitle

Definition at line 939 of file svgfig.py.