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 10 import matplotlib.pyplot as plt
11 11  
12 12 parser = argparse.ArgumentParser()
13   -parser.add_argument('output', type=str, help='Output file.')
14 13 args = parser.parse_args()
15 14  
16 15 class Score(object):
... ... @@ -58,9 +57,9 @@ ax.axis(xmin=-0.7,xmax=len(scores) + 0.7,
58 57 for tick_location in ax.yaxis.get_majorticklocs():
59 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 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 64 fig.set_size_inches(6.5,2.5)
66 65  
... ...