From 6fe9fe8a82d287b462a98862c083c2905b1580c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 12 Apr 2021 14:16:27 +0300 Subject: [PATCH] rename arguments --- IV/Makefile | 8 ++++---- IV/layer2img.py | 4 ++-- IV/mj-msc.tex | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/IV/Makefile b/IV/Makefile index 6d78718..6dd0e9b 100644 --- a/IV/Makefile +++ b/IV/Makefile @@ -75,7 +75,7 @@ fig8-definition-of-a-bend.pdf: layer2img.py Makefile .faux_test fig5-gentle-inflection-before.pdf: layer2img.py Makefile .faux_test python ./layer2img.py \ - --sizediv=2 \ + --widthdiv=2 \ --group1-table=wm_debug \ --group1-where="name='fig5' AND stage='bbends' AND gen=1" \ --group2-cmap=1 \ @@ -85,7 +85,7 @@ fig5-gentle-inflection-before.pdf: layer2img.py Makefile .faux_test fig5-gentle-inflection-after.pdf: layer2img.py Makefile .faux_test python ./layer2img.py \ - --sizediv=2 \ + --widthdiv=2 \ --group1-table=wm_debug \ --group1-where="name='fig5' AND stage='cinflections' AND gen=1" \ --group2-cmap=1 \ @@ -95,7 +95,7 @@ fig5-gentle-inflection-after.pdf: layer2img.py Makefile .faux_test inflection-1-gentle-inflection-before.pdf: layer2img.py Makefile .faux_test python ./layer2img.py \ - --sizediv=2 \ + --widthdiv=2 \ --group1-table=wm_debug \ --group1-where="name='inflection-1' AND stage='bbends' AND gen=1" \ --group2-cmap=1 \ @@ -105,7 +105,7 @@ inflection-1-gentle-inflection-before.pdf: layer2img.py Makefile .faux_test inflection-1-gentle-inflection-after.pdf: layer2img.py Makefile .faux_test python ./layer2img.py \ - --sizediv=2 \ + --widthdiv=2 \ --group1-table=wm_debug \ --group1-where="name='inflection-1' AND stage='cinflections' AND gen=1" \ --group2-cmap=1 \ diff --git a/IV/layer2img.py b/IV/layer2img.py index bcb9925..dd110d5 100644 --- a/IV/layer2img.py +++ b/IV/layer2img.py @@ -29,7 +29,7 @@ def parse_args(): parser.add_argument('--group3-where') parser.add_argument('--group3-cmap', type=bool) - parser.add_argument('--sizediv', + parser.add_argument('--widthdiv', default=1, type=float, help='Size divisor') parser.add_argument('-o', '--outfile', metavar='') @@ -58,7 +58,7 @@ def main(): rc('text', usetex=True) fig, ax = plt.subplots() - fig.set_figwidth(8.27 / args.sizediv) + fig.set_figwidth(8.27 / args.widthdiv) if c := args.clip: ax.set_xlim(left=c[0], right=c[2]) ax.set_ylim(bottom=c[1], top=c[3]) diff --git a/IV/mj-msc.tex b/IV/mj-msc.tex index 6694888..1358822 100644 --- a/IV/mj-msc.tex +++ b/IV/mj-msc.tex @@ -293,12 +293,12 @@ when a single vertex is moved outwards the end of the bend. \begin{figure}[h] \centering - \begin{subfigure}[b]{.45\textwidth} + \begin{subfigure}[b]{.49\textwidth} \includegraphics[width=\textwidth]{fig5-gentle-inflection-before} \caption{Before applying the inflection rule} \end{subfigure} \hfill - \begin{subfigure}[b]{.45\textwidth} + \begin{subfigure}[b]{.49\textwidth} \includegraphics[width=\textwidth]{fig5-gentle-inflection-after} \caption{After applying the inflection rule} \end{subfigure}