diff --git a/figures/Makefile b/figures/Makefile new file mode 100644 index 0000000..29f88d4 --- /dev/null +++ b/figures/Makefile @@ -0,0 +1,12 @@ +TARGETS = survey.pdf + +all: $(TARGETS) + @echo > /dev/null + +survey.pdf: survey.py survey.csv + ./survey.py + +clean: + @rm -f $(TARGETS) + +.PHONY: clean all diff --git a/figures/survey.pdf b/figures/survey.pdf index 6c6a7f2..1fe5af2 100644 --- a/figures/survey.pdf +++ b/figures/survey.pdf diff --git a/figures/survey.py b/figures/survey.py index 17dd8b5..e63a672 100755 --- a/figures/survey.py +++ b/figures/survey.py @@ -10,7 +10,6 @@ rc('text', usetex=True) import matplotlib.pyplot as plt parser = argparse.ArgumentParser() -parser.add_argument('output', type=str, help='Output file.') args = parser.parse_args() class Score(object): @@ -58,9 +57,9 @@ ax.axis(xmin=-0.7,xmax=len(scores) + 0.7, for tick_location in ax.yaxis.get_majorticklocs(): ax.axhline(tick_location, color='black', ls=':', linewidth=0.1, zorder=-1) -ax.set_xlabel('\\textbf{%d Responses}' % (len(scores))) +ax.set_xlabel('\\textbf{%d Responses}' % (len(scores)), labelpad=6) ax.set_ylabel('\\textbf{Score}') -fig.subplots_adjust(right=0.99,top=0.98,left=0.08,bottom=0.10) +fig.subplots_adjust(right=0.99,top=0.98,left=0.07,bottom=0.10) fig.set_size_inches(6.5,2.5)