From 62a2349bc8315bfb0eb32e3923d112cd84068478 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Tue, 25 Jun 2013 19:13:18 +0200 Subject: [PATCH] Allow only 'quadratic' or 'cubic' as interpolation value --- pygal_gen.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pygal_gen.py b/pygal_gen.py index 87ea1ca..5c16995 100755 --- a/pygal_gen.py +++ b/pygal_gen.py @@ -49,9 +49,7 @@ for key, val in pygal.config.Config.__dict__.items(): if val: opt_name = 'no-' + opt_name if key == 'interpolate': - opts['choices'] = [ - 'linear', 'nearest', 'zero', 'slinear', 'quadratic', - 'cubic', 'krogh', 'barycentric', 'univariate'] + opts['choices'] = ['quadratic', 'cubic'] parser.add_argument( '--%s' % opt_name, dest=key, default=val, **opts)