-
Notifications
You must be signed in to change notification settings - Fork 0
/
Productivity.py
18 lines (17 loc) · 936 Bytes
/
Productivity.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import seaborn as sns
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
productivity = pd.read_csv('data/Productivity.csv')
sns.set(style="whitegrid")
# productivity = sns.load_dataset("/Users/emadaghayi/Google Drive/PhD Materials Emad/Microtask Programming/Evaluation Crowd Microservices/Analysis/workspace/Plotter/data/Productivity.xlsx/Productivity.xlsx")
print(productivity)
ax = sns.violinplot(x="Developers", y="Number of correctly implemented behaviors per hour", data=productivity, inner=None, palette=['#ff6361','#58508d'])\
# .set_title("Productivity of Individual Developers")
ax = sns.swarmplot(x="Developers", y="Number of correctly implemented behaviors per hour", data=productivity, color="white", edgecolor="gray")
# plt.show();
plt.gca().spines['right'].set_visible(False)
plt.gca().spines['top'].set_visible(False)
plt.yticks(np.arange(0, 8, 1))
# plt.show();
plt.savefig('./data/prod.pdf')