adding other plot views
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user