Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
kiaraafarias authored Feb 19, 2021
1 parent 78c6507 commit 47191e3
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions multi_participants/Graphing functions (1).py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/usr/bin/env python
# coding: utf-8

# In[26]:


from matplotlib import pyplot as plt
import pandas as pd
import numpy as np


# In[27]:


data = pd.read_csv('/Users/kf/Downloads/case_4_accuracy.csv')


# In[28]:


standErr = np.std(data, ddof=1, axis=1) / np.sqrt(np.size(data, axis =1))


# In[29]:


data['mean'] = data.mean(axis=1)


# In[30]:


plt.figure(figsize=(7,8))
plt.errorbar( data['Unnamed: 0'], data['mean'], yerr=standErr, fmt='o', color='Black', elinewidth=2,capthick=2,errorevery=1, alpha=1, ms=2, capsize = 3)
plt.bar(data['Unnamed: 0'], data['mean'],tick_label = data['Unnamed: 0'], color = 'mediumslateblue')##Bar plot


# In[ ]:




0 comments on commit 47191e3

Please sign in to comment.