From 6ccfdb28d8205a2307fbabaadc816b6e1aa3a444 Mon Sep 17 00:00:00 2001 From: Geoffrey Challen Date: Mon, 13 Oct 2014 17:39:08 -0400 Subject: [PATCH] New. --- figures/Makefile | 12 ++++++++++++ figures/survey.pdf | Bin 134549 -> 0 bytes figures/survey.py | 5 ++--- 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 figures/Makefile 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 Binary files a/figures/survey.pdf and b/figures/survey.pdf differ 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) -- libgit2 0.22.2