diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index 9a5aa37f..dbe4da77 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -1327,6 +1327,11 @@ def interactive_agegroup_plot(df,distance=2000,duration=None, name = df['name'] season = df['season'] + if duration: + plottitle = sex+' '+weightcategory+' '+duration+' min' + else: + plottitle = sex+' '+weightcategory+' '+distance+'m' + # poly_coefficients = np.polyfit(age,power,6) age2 = np.linspace(11,95) @@ -1365,7 +1370,8 @@ def interactive_agegroup_plot(df,distance=2000,duration=None, plot.line(age2,expo_vals) plot.xaxis.axis_label = "Age" plot.yaxis.axis_label = "Concept2 power" - + plot.title.text = plottitle + hover = plot.select(dict(type=HoverTool)) hover.tooltips = OrderedDict([