Commit 6ccfdb28d8205a2307fbabaadc816b6e1aa3a444

Authored by Geoffrey Challen
1 parent 371db7d5

New.

figures/Makefile 0 → 100644
  1 +TARGETS = survey.pdf
  2 +
  3 +all: $(TARGETS)
  4 + @echo > /dev/null
  5 +
  6 +survey.pdf: survey.py survey.csv
  7 + ./survey.py
  8 +
  9 +clean:
  10 + @rm -f $(TARGETS)
  11 +
  12 +.PHONY: clean all
figures/survey.pdf
No preview for this file type
figures/survey.py
@@ -10,7 +10,6 @@ rc('text', usetex=True) @@ -10,7 +10,6 @@ rc('text', usetex=True)
10 import matplotlib.pyplot as plt 10 import matplotlib.pyplot as plt
11 11
12 parser = argparse.ArgumentParser() 12 parser = argparse.ArgumentParser()
13 -parser.add_argument('output', type=str, help='Output file.')  
14 args = parser.parse_args() 13 args = parser.parse_args()
15 14
16 class Score(object): 15 class Score(object):
@@ -58,9 +57,9 @@ ax.axis(xmin=-0.7,xmax=len(scores) + 0.7, @@ -58,9 +57,9 @@ ax.axis(xmin=-0.7,xmax=len(scores) + 0.7,
58 for tick_location in ax.yaxis.get_majorticklocs(): 57 for tick_location in ax.yaxis.get_majorticklocs():
59 ax.axhline(tick_location, color='black', ls=':', linewidth=0.1, zorder=-1) 58 ax.axhline(tick_location, color='black', ls=':', linewidth=0.1, zorder=-1)
60 59
61 -ax.set_xlabel('\\textbf{%d Responses}' % (len(scores))) 60 +ax.set_xlabel('\\textbf{%d Responses}' % (len(scores)), labelpad=6)
62 ax.set_ylabel('\\textbf{Score}') 61 ax.set_ylabel('\\textbf{Score}')
63 -fig.subplots_adjust(right=0.99,top=0.98,left=0.08,bottom=0.10) 62 +fig.subplots_adjust(right=0.99,top=0.98,left=0.07,bottom=0.10)
64 63
65 fig.set_size_inches(6.5,2.5) 64 fig.set_size_inches(6.5,2.5)
66 65