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
svgfig.Plot Class Reference

Public Member Functions

def __init__
 
def __repr__
 
def SVG
 

Public Attributes

 arrows
 
 atx
 
 aty
 
 axis_attr
 
 d
 
 flipx
 
 flipy
 
 height
 
 last_window
 
 minusInfinity
 
 text_attr
 
 trans
 
 width
 
 x
 
 xlabels
 
 xlogbase
 
 xminiticks
 
 xticks
 
 y
 
 ylabels
 
 ylogbase
 
 ymax
 
 yminiticks
 
 yticks
 

Detailed Description

Acts like Fig, but draws a coordinate axis. You also need to supply plot ranges.

Plot(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:

trans           None          transformation function
x, y            5, 5          upper-left corner of the Plot in SVG coordinates
width, height   90, 90        width and height of the Plot 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
atx, aty        0, 0          the place where the coordinate axes cross
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)
arrows          None          if a new identifier, create arrow markers and draw them
                              at the ends of the coordinate axes
text_attr       {}            a dictionary of attributes for label text
axis_attr       {}            a dictionary of attributes for the axis lines

Definition at line 782 of file svgfig.py.

Constructor & Destructor Documentation

def svgfig.Plot.__init__ (   self,
  xmin,
  xmax,
  ymin,
  ymax,
  d,
  kwds 
)

Definition at line 822 of file svgfig.py.

Member Function Documentation

def svgfig.Plot.__repr__ (   self)

Definition at line 816 of file svgfig.py.

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

Definition at line 856 of file svgfig.py.

Member Data Documentation

svgfig.Plot.arrows

Definition at line 850 of file svgfig.py.

svgfig.Plot.atx

Definition at line 840 of file svgfig.py.

svgfig.Plot.aty

Definition at line 845 of file svgfig.py.

svgfig.Plot.axis_attr

Definition at line 852 of file svgfig.py.

svgfig.Plot.d

Definition at line 824 of file svgfig.py.

svgfig.Plot.flipx

Definition at line 837 of file svgfig.py.

svgfig.Plot.flipy

Definition at line 838 of file svgfig.py.

svgfig.Plot.height

Definition at line 836 of file svgfig.py.

svgfig.Plot.last_window

Definition at line 861 of file svgfig.py.

svgfig.Plot.minusInfinity

Definition at line 839 of file svgfig.py.

svgfig.Plot.text_attr

Definition at line 851 of file svgfig.py.

svgfig.Plot.trans

Definition at line 817 of file svgfig.py.

svgfig.Plot.width

Definition at line 835 of file svgfig.py.

svgfig.Plot.x

Definition at line 833 of file svgfig.py.

svgfig.Plot.xlabels

Definition at line 843 of file svgfig.py.

svgfig.Plot.xlogbase

Definition at line 844 of file svgfig.py.

svgfig.Plot.xminiticks

Definition at line 842 of file svgfig.py.

svgfig.Plot.xticks

Definition at line 841 of file svgfig.py.

svgfig.Plot.y

Definition at line 834 of file svgfig.py.

svgfig.Plot.ylabels

Definition at line 848 of file svgfig.py.

svgfig.Plot.ylogbase

Definition at line 849 of file svgfig.py.

svgfig.Plot.ymax

Definition at line 823 of file svgfig.py.

svgfig.Plot.yminiticks

Definition at line 847 of file svgfig.py.

svgfig.Plot.yticks

Definition at line 846 of file svgfig.py.