[MERGE] Remove the embedded pychart library, and use the online version
[odoo/odoo.git] /
1 # -*- coding: utf-8 -*-
2 #
3 # Copyright (C) 2000-2005 by Yasushi Saito (yasushi.saito@gmail.com)
4
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
8 # later version.
9 #
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
13 # for more details.
14 #
15 import theme
16
17 x_base = 300
18 y_base = 300
19
20 def xscale(x):
21     return x * theme.scale_factor + x_base
22 def yscale(y):
23     return y * theme.scale_factor + y_base
24
25 def nscale(x):
26     return x * theme.scale_factor
27 def nscale_seq(x):
28     return map(nscale, x)
29