- traces.append(plgo.Scatter(
- x=ydata[suite][0::2],
- y=ydata[suite][1::2],
- mode='lines+markers',
- name=str(i+1)+'. '+suite.lower().replace('-ndrdisc',''),
- ))
+ if args.plot == 'box':
+ traces.append(plgo.Box(
+ x=[str(i+1)+'.'] * len(ydata[suite][1::2]),
+ y=ydata[suite][1::2],
+ name=str(i+1)+'. '+suite.lower().replace('-ndrdisc',''),
+ hoverinfo='x+y',
+ boxpoints='outliers',
+ ))
+ elif args.plot == 'scatter':
+ traces.append(plgo.Scatter(
+ x=ydata[suite][0::2],
+ y=ydata[suite][1::2],
+ mode='lines+markers',
+ name=str(i+1)+'. '+suite.lower().replace('-ndrdisc',''),
+ ))
+ else:
+ pass