Package pygtk_chart :: Module line_chart :: Class Axis
[hide private]
[frames] | no frames]

Class Axis

source code


Instance Methods [hide private]
 
__init__(self, range_calc, label)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
do_get_property(self, property) source code
 
do_set_property(self, property, value) source code
 
set_label(self, label)
Set the label of the axis.
source code
 
get_label(self)
Returns the current label of the axis.
source code
 
set_show_label(self, show)
Set whether to show the axis' label.
source code
 
get_show_label(self)
Returns True if the axis' label is shown.
source code
 
set_position(self, pos)
Set the position of the axis.
source code
 
get_position(self)
Returns the position of the axis.
source code
 
set_show_tics(self, show)
Set whether to draw tics at the axis.
source code
 
get_show_tics(self)
Returns True if tics are drawn.
source code
 
set_show_tic_labels(self, show)
Set whether to draw tic labels.
source code
 
get_show_tic_labels(self)
Returns True if tic labels are shown.
source code
 
set_tic_format_function(self, func)
Use this to set the function that should be used to label the tics.
source code
 
get_tic_format_function(self)
Returns the function currently used for labeling the tics.
source code

Inherited from chart.ChartObject: draw, get_antialias, get_visible, set_antialias, set_visible

Inherited from chart.ChartObject (private): _do_draw

Inherited from unreachable.GObject: __cmp__, __copy__, __deepcopy__, __delattr__, __gdoc__, __gobject_init__, __hash__, __new__, __repr__, __setattr__, chain, connect, connect_after, connect_object, connect_object_after, disconnect, disconnect_by_func, emit, emit_stop_by_name, freeze_notify, get_data, get_properties, get_property, handler_block, handler_block_by_func, handler_disconnect, handler_is_connected, handler_unblock, handler_unblock_by_func, notify, props, set_data, set_properties, set_property, stop_emission, thaw_notify, weak_ref

Inherited from object: __getattribute__, __reduce__, __reduce_ex__, __str__

Class Variables [hide private]
  __gproperties__ = {"label":(gobject.TYPE_STRING, "axis label",...
  __gtype__ = <GType pygtk_chart+line_chart+Axis (169158488)>

Inherited from chart.ChartObject: __gsignals__

Properties [hide private]

Inherited from unreachable.GObject: __grefcount__

Inherited from object: __class__

Method Details [hide private]

__init__(self, range_calc, label)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

do_get_property(self, property)

source code 
Overrides: chart.ChartObject.do_get_property

do_set_property(self, property, value)

source code 
Overrides: chart.ChartObject.do_set_property

set_label(self, label)

source code 

Set the label of the axis.

Parameters:
  • label (string.) - new label

get_label(self)

source code 

Returns the current label of the axis.

Returns:
string.

set_show_label(self, show)

source code 

Set whether to show the axis' label.

Parameters:
  • show (boolean.)

get_show_label(self)

source code 

Returns True if the axis' label is shown.

Returns:
boolean.

set_position(self, pos)

source code 

Set the position of the axis. pos hast to be one these constants: POSITION_AUTO, POSITION_BOTTOM, POSITION_LEFT, POSITION_RIGHT, POSITION_TOP.

get_position(self)

source code 

Returns the position of the axis. (see set_position for details).

set_show_tics(self, show)

source code 

Set whether to draw tics at the axis.

Parameters:
  • show (boolean.)

get_show_tics(self)

source code 

Returns True if tics are drawn.

Returns:
boolean.

set_show_tic_labels(self, show)

source code 

Set whether to draw tic labels. Labels are only drawn if tics are drawn.

Parameters:
  • show (boolean.)

get_show_tic_labels(self)

source code 

Returns True if tic labels are shown.

Returns:
boolean.

set_tic_format_function(self, func)

source code 

Use this to set the function that should be used to label the tics. The function should take a number as the only argument and return a string. Default: str

Parameters:
  • func (function.)

Class Variable Details [hide private]

__gproperties__

Value:
{"label":(gobject.TYPE_STRING, "axis label", "The label of the axis.",\
 "", gobject.PARAM_READWRITE), "show-label":(gobject.TYPE_BOOLEAN, "sh\
ow label", "Set whether to show the axis label.", True, gobject.PARAM_\
READWRITE), "position":(gobject.TYPE_INT, "axis position", "Position o\
f the axis.", 5, 7, 5, gobject.PARAM_READWRITE), "show-tics":(gobject.\
TYPE_BOOLEAN, "show tics", "Set whether to draw tics.", True, gobject.\
PARAM_READWRITE), "show-tic-labels":(gobject.TYPE_BOOLEAN, "show tic l\
abels", "Set whether to draw tic labels", True, gobject.PARAM_READWRIT\
...