Private
Public Access
1
0

added title to box plot

This commit is contained in:
Sander Roosendaal
2017-05-15 21:17:17 +02:00
parent d4c16f2c1a
commit e8e7312fb6
5 changed files with 32 additions and 7 deletions

View File

@@ -87,11 +87,11 @@ def tailwind(bearing,vwind,winddir):
from rowers.dataprep import nicepaceformat,niceformat
from rowers.dataprep import timedeltaconv
def interactive_boxchart(datadf,fieldname):
def interactive_boxchart(datadf,fieldname,extratitle=''):
TOOLS = 'save,pan,box_zoom,wheel_zoom,reset,resize'
plot = BoxPlot(datadf, values=fieldname, label='date',
legend=False,
title=axlabels[fieldname],
title=axlabels[fieldname]+' '+extratitle,
outliers=False,
tools=TOOLS,
x_mapper_type='datetime')