-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
So i mentioned how my virtual machine isn't responding to github in my previous issue, so for now i'm working on the parsed data directly.
However im still getting errors that my teammates are not getting.
The last screenshot shows the error.
code:
import os.path
import ConfigParser
import re
import numpy as np
import matplotlib.pyplot as plt
import collections
import gspread
from itertools import islice
collections.OrderedDict([('mimd/simd', 1), ('stat 134/135/153/154', 1), ('working in stat 157', 1),
('d3', 1), ('collaborative data science', 2), ('academic publishing', 2), ('r', 2), ('jquery', 3),
('javascript', 8), ('html5', 8), ('ipython notebook or python', 9),
('xml', 11), ('github', 12), ('blogging', 13), ('latex', 14), ('probability', 30),
('statistics', 31)])
# Attach text labels at the end of the graph
def autolabel(rects):
for ii,rect in enumerate(rects):
height = rect.get_height()
plt.text(height+rect.get_width(), rect.get_y()+0.2,
'%s'% (experienceDict.values()[ii]),
ha='center', va='bottom', size=14)
fig, ay = plt.subplots()
ind = np.arange(17)
width = 0.75
rects1 = ay.barh(ind, tuple(experienceDict.values()), width, alpha=0.5, align='center')
autolabel(rects1)
# Change size of whole graph
fig = plt.gcf()
fig.set_size_inches(13,8)
plt.savefig('test2png.png', dpi=100)
plt.yticks(range(len(experienceDict)), experienceDict.keys(), size=18)
plt.xticks(size=18)
plt.xlabel('\nNumber of Students', size=20)
plt.title('Have you had any personal experience in any of the following topicsjQuery1720723246063105762_1381204271414\n', size=25)
# Adjust graph limits
ymin, ymax = plt.ylim() # return the current ylim
plt.ylim(ymax = 17, ymin=-1) # set the ylim to ymin, ymax
plt.xlim(xmax = 35)
plt.tick_params(axis='y', right=False, left=False)
