Package GChartWrapper :: Module GChart' :: Class Axes
[hide private]
[frames] | no frames]

type Axes

source code

object --+    
         |    
      dict --+
             |
            Axes

Axes attribute dictionary storage

Use this class via GChart(...).axes Methods are taken one at a time, like so:

>>> G = GChart()
>>> G.axes.type('xy')
{}
>>> G.axes.label(1,'Label1') # X Axis
{}
>>> G.axes.label(2,'Label2') # Y Axis
{}
Instance Methods [hide private]
 
__call__(self, atype)
Define the type of axes you wish to use atype must be one of x,t,y,r APIPARAM: chxt
source code
new empty dictionary

__init__(self, parent)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
label(self, index, *args)
Label each axes one at a time args are of the form <label 1>,...,<label n> APIPARAM: chxl
source code
 
position(self, index, *args)
Set the label position of each axis, one at a time args are of the form <label position 1>,...,<label position n> APIPARAM: chxp
source code
 
range(self, index, *args)
Set the range of each axis, one at a time args are of the form <start of range>,<end of range>,<interval> APIPARAM: chxr
source code
 
render(self)
Render the axes data into the dict data
source code
 
style(self, index, *args)
Add style to your axis, one at a time args are of the form:
source code
 
tick(self, index, length)
Add tick marks in order of axes by width APIPARAM: chxtc <axis index>,<length of tick mark>
source code
 
type(self, atype)
Define the type of axes you wish to use atype must be one of x,t,y,r APIPARAM: chxt
source code

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __setitem__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Method Details [hide private]

__init__(self, parent)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Returns:
new empty dictionary

Overrides: dict.__init__
(inherited documentation)

style(self, index, *args)

source code 

Add style to your axis, one at a time args are of the form:

   <axis color>,
   <font size>,
   <alignment>,
   <drawing control>,
   <tick mark color>

APIPARAM: chxs