Private
Public Access
1
0

adding other plot views

This commit is contained in:
Sander Roosendaal
2017-09-25 12:28:52 +02:00
parent 04ac613710
commit fc321ad72f
2 changed files with 16 additions and 203 deletions

View File

@@ -18,8 +18,9 @@ from rowers.utils import (
)
def make_plot(r,w,f1,f2,plottype,title):
imagename = f1[:-4]+'.png'
def make_plot(r,w,f1,f2,plottype,title,imagename='',plotnr=0):
if imagename == '':
imagename = f1[:-4]+'.png'
fullpathimagename = 'static/plots/'+imagename
powerperc = 100*np.array([r.pw_ut2,
@@ -50,7 +51,9 @@ def make_plot(r,w,f1,f2,plottype,title):
'pieplot':3,
}
plotnr = plotnrs[plottype]
if plotnr == 0:
plotnr = plotnrs[plottype]
if w.workouttype in ('water','coastal'):
plotnr = plotnr+3