palette picker multiflex
This commit is contained in:
@@ -327,6 +327,11 @@ formaxlabelsmultiflex.pop('distance')
|
||||
formaxlabelsmultiflex['workoutid'] = 'Workout'
|
||||
parchoicesmultiflex = list(sorted(formaxlabelsmultiflex.items(), key = lambda x:x[1]))
|
||||
|
||||
from utils import palettes
|
||||
#palettechoices = { key:key for key, value in palettes.iteritems() }
|
||||
|
||||
palettechoices = tuple((p,p) for p in palettes.keys())
|
||||
|
||||
|
||||
class MultiFlexChoiceForm(forms.Form):
|
||||
xparam = forms.ChoiceField(choices=parchoicesmultiflex,
|
||||
@@ -352,7 +357,10 @@ class MultiFlexChoiceForm(forms.Form):
|
||||
includereststrokes = forms.BooleanField(initial=False,
|
||||
required=False,
|
||||
label='Include Rest Strokes')
|
||||
|
||||
palette = forms.ChoiceField(choices=palettechoices,
|
||||
label = 'Color Scheme',
|
||||
initial='monochrome_blue')
|
||||
|
||||
class ChartParamChoiceForm(forms.Form):
|
||||
plotchoices = (
|
||||
('line','Line Plot'),
|
||||
|
||||
Reference in New Issue
Block a user