Private
Public Access
1
0

added compare

This commit is contained in:
Sander Roosendaal
2019-04-30 20:18:47 +02:00
parent 337b6c530f
commit 4f2858cebd
4 changed files with 68 additions and 1 deletions

View File

@@ -843,6 +843,7 @@ analysischoices = (
('histo','Histogram'),
('flexall','Cumulative Flex Chart'),
('stats','Statistics'),
('compare','Compare'),
)
@@ -859,7 +860,11 @@ class AnalysisChoiceForm(forms.Form):
yaxchoices = dict((x,y) for x,y in yaxchoices)
yaxchoices = list(sorted(yaxchoices.items(), key = lambda x:x[1]))
plotchoices = (
('line','Line Plot'),
('scatter','Scatter Plot'),
)
yaxchoices2 = list(
(ax[0],ax[1]) for ax in axes if ax[0] not in ['cumdist','distance','time']
)
@@ -874,6 +879,7 @@ class AnalysisChoiceForm(forms.Form):
choices=yaxchoices,label='Left Axis',required=True,initial='power')
yaxis2 = forms.ChoiceField(
choices=yaxchoices2,label='Right Axis',required=True,initial='None')
plottype = forms.ChoiceField(choices=plotchoices,initial='scatter')
plotfield = forms.ChoiceField(choices=parchoices,initial='spm',
label='Metric')