Browse Source

Allow only 'quadratic' or 'cubic' as interpolation value

pull/58/head
Guillaume Ayoub 12 years ago
parent
commit
62a2349bc8
  1. 4
      pygal_gen.py

4
pygal_gen.py

@ -49,9 +49,7 @@ for key, val in pygal.config.Config.__dict__.items():
if val: if val:
opt_name = 'no-' + opt_name opt_name = 'no-' + opt_name
if key == 'interpolate': if key == 'interpolate':
opts['choices'] = [ opts['choices'] = ['quadratic', 'cubic']
'linear', 'nearest', 'zero', 'slinear', 'quadratic',
'cubic', 'krogh', 'barycentric', 'univariate']
parser.add_argument( parser.add_argument(
'--%s' % opt_name, dest=key, default=val, **opts) '--%s' % opt_name, dest=key, default=val, **opts)

Loading…
Cancel
Save