adding grid user settings
This commit is contained in:
@@ -1902,34 +1902,34 @@ def handle_makeplot(f1, f2, t, hrdata, plotnr, imagename,
|
||||
row.df = df
|
||||
nr_rows = len(row.df)
|
||||
if (plotnr == 1):
|
||||
fig1 = row.get_timeplot_erg(t)
|
||||
fig1 = row.get_timeplot_erg(t,**kwargs)
|
||||
elif (plotnr == 2):
|
||||
fig1 = row.get_metersplot_erg(t)
|
||||
fig1 = row.get_metersplot_erg(t,**kwargs)
|
||||
elif (plotnr == 3):
|
||||
t += ' - Heart Rate Distribution'
|
||||
fig1 = row.get_piechart(t)
|
||||
fig1 = row.get_piechart(t,**kwargs)
|
||||
elif (plotnr == 4):
|
||||
if haspower:
|
||||
fig1 = row.get_timeplot_otwempower(t)
|
||||
fig1 = row.get_timeplot_otwempower(t,**kwargs)
|
||||
else:
|
||||
fig1 = row.get_timeplot_otw(t)
|
||||
fig1 = row.get_timeplot_otw(t,**kwargs)
|
||||
elif (plotnr == 5):
|
||||
if haspower:
|
||||
fig1 = row.get_metersplot_otwempower(t)
|
||||
fig1 = row.get_metersplot_otwempower(t,**kwargs)
|
||||
else:
|
||||
fig1 = row.get_metersplot_otw(t)
|
||||
fig1 = row.get_metersplot_otw(t,**kwargs)
|
||||
elif (plotnr == 6):
|
||||
t += ' - Heart Rate Distribution'
|
||||
fig1 = row.get_piechart(t)
|
||||
fig1 = row.get_piechart(t,**kwargs)
|
||||
elif (plotnr == 7) or (plotnr == 10):
|
||||
fig1 = row.get_metersplot_erg2(t)
|
||||
fig1 = row.get_metersplot_erg2(t,**kwargs)
|
||||
elif (plotnr == 8) or (plotnr == 11):
|
||||
fig1 = row.get_timeplot_erg2(t)
|
||||
fig1 = row.get_timeplot_erg2(t,**kwargs)
|
||||
elif (plotnr == 9) or (plotnr == 12):
|
||||
fig1 = row.get_time_otwpower(t)
|
||||
fig1 = row.get_time_otwpower(t,**kwargs)
|
||||
elif (plotnr == 13) or (plotnr == 16):
|
||||
t += ' - Power Distribution'
|
||||
fig1 = row.get_power_piechart(t)
|
||||
fig1 = row.get_power_piechart(t,**kwargs)
|
||||
|
||||
if fig1 is None:
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user