rename arguments

This commit is contained in:
Motiejus Jakštys 2021-04-12 14:16:27 +03:00
parent 07d7bc3ee0
commit 6fe9fe8a82
3 changed files with 8 additions and 8 deletions

View File

@ -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 fig5-gentle-inflection-before.pdf: layer2img.py Makefile .faux_test
python ./layer2img.py \ python ./layer2img.py \
--sizediv=2 \ --widthdiv=2 \
--group1-table=wm_debug \ --group1-table=wm_debug \
--group1-where="name='fig5' AND stage='bbends' AND gen=1" \ --group1-where="name='fig5' AND stage='bbends' AND gen=1" \
--group2-cmap=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 fig5-gentle-inflection-after.pdf: layer2img.py Makefile .faux_test
python ./layer2img.py \ python ./layer2img.py \
--sizediv=2 \ --widthdiv=2 \
--group1-table=wm_debug \ --group1-table=wm_debug \
--group1-where="name='fig5' AND stage='cinflections' AND gen=1" \ --group1-where="name='fig5' AND stage='cinflections' AND gen=1" \
--group2-cmap=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 inflection-1-gentle-inflection-before.pdf: layer2img.py Makefile .faux_test
python ./layer2img.py \ python ./layer2img.py \
--sizediv=2 \ --widthdiv=2 \
--group1-table=wm_debug \ --group1-table=wm_debug \
--group1-where="name='inflection-1' AND stage='bbends' AND gen=1" \ --group1-where="name='inflection-1' AND stage='bbends' AND gen=1" \
--group2-cmap=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 inflection-1-gentle-inflection-after.pdf: layer2img.py Makefile .faux_test
python ./layer2img.py \ python ./layer2img.py \
--sizediv=2 \ --widthdiv=2 \
--group1-table=wm_debug \ --group1-table=wm_debug \
--group1-where="name='inflection-1' AND stage='cinflections' AND gen=1" \ --group1-where="name='inflection-1' AND stage='cinflections' AND gen=1" \
--group2-cmap=1 \ --group2-cmap=1 \

View File

@ -29,7 +29,7 @@ def parse_args():
parser.add_argument('--group3-where') parser.add_argument('--group3-where')
parser.add_argument('--group3-cmap', type=bool) parser.add_argument('--group3-cmap', type=bool)
parser.add_argument('--sizediv', parser.add_argument('--widthdiv',
default=1, type=float, help='Size divisor') default=1, type=float, help='Size divisor')
parser.add_argument('-o', '--outfile', metavar='<file>') parser.add_argument('-o', '--outfile', metavar='<file>')
@ -58,7 +58,7 @@ def main():
rc('text', usetex=True) rc('text', usetex=True)
fig, ax = plt.subplots() fig, ax = plt.subplots()
fig.set_figwidth(8.27 / args.sizediv) fig.set_figwidth(8.27 / args.widthdiv)
if c := args.clip: if c := args.clip:
ax.set_xlim(left=c[0], right=c[2]) ax.set_xlim(left=c[0], right=c[2])
ax.set_ylim(bottom=c[1], top=c[3]) ax.set_ylim(bottom=c[1], top=c[3])

View File

@ -293,12 +293,12 @@ when a single vertex is moved outwards the end of the bend.
\begin{figure}[h] \begin{figure}[h]
\centering \centering
\begin{subfigure}[b]{.45\textwidth} \begin{subfigure}[b]{.49\textwidth}
\includegraphics[width=\textwidth]{fig5-gentle-inflection-before} \includegraphics[width=\textwidth]{fig5-gentle-inflection-before}
\caption{Before applying the inflection rule} \caption{Before applying the inflection rule}
\end{subfigure} \end{subfigure}
\hfill \hfill
\begin{subfigure}[b]{.45\textwidth} \begin{subfigure}[b]{.49\textwidth}
\includegraphics[width=\textwidth]{fig5-gentle-inflection-after} \includegraphics[width=\textwidth]{fig5-gentle-inflection-after}
\caption{After applying the inflection rule} \caption{After applying the inflection rule}
\end{subfigure} \end{subfigure}