wm

Wang–Müller line generalization algorithm in PostGIS
Log | Files | Refs | README | LICENSE

commit f74ec5e93bb5310a5de2a2c3e558f317d47d8093 (tree)
parent d46542162c591f002698a64581e8da75881e8385
Author: Motiejus Jakštys <motiejus@jakstys.lt>
Date:   Wed, 19 May 2021 22:57:47 +0300

rename arguments

Diffstat:
MMakefile | 8++++----
Mlayer2img.py | 4++--
Mmj-msc.tex | 4++--
3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/Makefile b/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/layer2img.py b/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='<file>') @@ -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/mj-msc.tex b/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}