1 # -*- coding: utf-8 -*-
3 # Copyright (C) 2000-2005 by Yasushi Saito (yasushi.saito@gmail.com)
5 # Jockey is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by the
7 # Free Software Foundation; either version 2, or (at your option) any
10 # Jockey is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 doc="""Attributes supported by this class are:
16 tic_label_offset(type:(x,y)):
17 The location where the tick labels is drawn. Relative to the
20 format(type:printf format string):
21 The format string for tick labels. It can be a `printf' style
22 format string, or a single-parameter function that returns a
23 string. See also font.
25 minor_tic_len(type:number):
26 The length of minor tick marks.
28 label_offset(type:(x,y) or None):
29 The location where the axis label is drawn. Relative to the
30 left-bottom corner of the axis.
31 default value=(None, None).
32 grid_interval(type:Number or function):
33 When the value is a number, it specifies the interval with which
34 grid lines are drawn. Otherwise, the value must be a function.
35 It must take no argument and return the list of numbers, which
36 specifies the X or Y points where grid lines are drawn.
39 The description of the axis. See also font.
40 default value=axis label.
41 grid_style(type:line_style.T):
42 The style of grid lines.
44 tic_interval(type:Number or function):
45 When the value is a number, it specifies the interval with which
46 tick marks are drawn. Otherwise, the value must be a function.
47 It must take no argument and return the list of numbers, which
48 specifies the X or Y points where tick marks are drawn.
50 line_style(type:line_style.T):
51 The style of tick lines.
52 default value=default.
54 The length of tick lines
56 minor_tic_interval(type:Number or function):
57 When the value is a number, it specifies the interval with which
58 minor tick marks are drawn. Otherwise, the value must be a function.
59 It must take no argument and return the list of numbers, which
60 specifies the X or Y points where minor tick marks are drawn.
62 first_tic_value(type:number):
63 The location of the first tick mark. Defaults to the x_range[0]
64 (or y_range[0]) of the area.