added title to world record chart
This commit is contained in:
@@ -1327,6 +1327,11 @@ def interactive_agegroup_plot(df,distance=2000,duration=None,
|
|||||||
name = df['name']
|
name = df['name']
|
||||||
season = df['season']
|
season = df['season']
|
||||||
|
|
||||||
|
if duration:
|
||||||
|
plottitle = sex+' '+weightcategory+' '+duration+' min'
|
||||||
|
else:
|
||||||
|
plottitle = sex+' '+weightcategory+' '+distance+'m'
|
||||||
|
|
||||||
# poly_coefficients = np.polyfit(age,power,6)
|
# poly_coefficients = np.polyfit(age,power,6)
|
||||||
|
|
||||||
age2 = np.linspace(11,95)
|
age2 = np.linspace(11,95)
|
||||||
@@ -1365,6 +1370,7 @@ def interactive_agegroup_plot(df,distance=2000,duration=None,
|
|||||||
plot.line(age2,expo_vals)
|
plot.line(age2,expo_vals)
|
||||||
plot.xaxis.axis_label = "Age"
|
plot.xaxis.axis_label = "Age"
|
||||||
plot.yaxis.axis_label = "Concept2 power"
|
plot.yaxis.axis_label = "Concept2 power"
|
||||||
|
plot.title.text = plottitle
|
||||||
|
|
||||||
hover = plot.select(dict(type=HoverTool))
|
hover = plot.select(dict(type=HoverTool))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user