Browse Source

Minor tweaks

pull/8/head
Florian Mounier 13 years ago
parent
commit
97f998488c
  1. 2
      demo/moulinrouge/__init__.py
  2. 3
      pygal/graph/pie.py

2
demo/moulinrouge/__init__.py

@ -171,7 +171,7 @@ def create_app():
config.style = styles['neon']
data = random.randrange(1, 10)
order = random.randrange(1, 10)
series = b64encode(pickle.dumps(_random(type, data, order)))
series = b64encode(pickle.dumps(_random_series(type, data, order)))
svgs = []
for interpolation in (
'linear', 'slinear', 'nearest', 'zero', 'quadratic', 'cubic',

3
pygal/graph/pie.py

@ -16,7 +16,6 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with pygal. If not, see <http://www.gnu.org/licenses/>.
from pygal.serie import Serie
from pygal.graph.graph import Graph
from math import cos, sin, pi
@ -32,7 +31,7 @@ class Pie(Graph):
(self.height - self.margin.y) / 2.)
r = min(center)
if small:
r *= .8
r *= .9
center_str = '%f %f' % center
rxy = '%f %f' % tuple([r] * 2)
to = '%f %f' % (r * sin(angle), r * (1 - cos(angle)))

Loading…
Cancel
Save